Generate panel data with staggered treatment adoption (three periods)
gen_dgp_mult_periods.Rd
Generate panel data where units adopt treatment at different times across three periods.
Value
A named list with components:
- data
A
data.table
in long format with columns:id
: unit identifiercohort
: first period when treatment is assignedpartition
: partition indicatorx1
,x2
,x3
,x4
: covariatescluster
: cluster identifier (no within-cluster correlation)time
: time period indexy
: observed outcome
- data_wide
A
data.table
in wide format (one row perid
) with columns:id
,cohort
,partition
,x1
,x2
,x3
,x4
,cluster
y_t0
,y_t1
,y_t2
: outcomes in periods 0, 1, and 2
- ES_0_unf
Unfeasible (oracle) event-study parameter at time 0.
- prob_g2_p1
Proportion of units with
cohort == 2
and eligibility in period 1.- prob_g3_p1
Proportion of units with
cohort == 3
and eligibility in period 1.