Description Usage Arguments Examples
This function models staggered adaption and produces the desired binary mask.
1  | stag_adapt(M, N_t, T0, treat_indices = 0)
 | 
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.  | 
1  | stag_adapt(M = replicate(5,rnorm(5)), N_t = 3, T0 = 3)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.