stag_adapt: This function models staggered adaption and produces the...

Description Usage Arguments Examples

View source: R/auxi.R

Description

This function models staggered adaption and produces the desired binary mask.

Usage

1
stag_adapt(M, N_t, T0, treat_indices = 0)

Arguments

M

Matrix of observed entries. The input should be N (number of units) by T (number of time periods).

N_t

Number of treated units desired.

T0

The first treatment time. The rest of treatment times are equally spaced between T0 to T.

treat_indices

Optional indices for treated units. The default is sampling N_t unit from all N units randomly. However, user can manually set some units as treated. Note that indices should be sorted increasingly based on their T0.

Examples

1
stag_adapt(M = replicate(5,rnorm(5)), N_t = 3, T0 = 3)

susanathey/MCPanel documentation built on May 29, 2019, 9:51 a.m.