Generate panel data with a single treatment date and two periods
gen_dgp_2periods(size, dgp_type)A list with the following elements:
A data.table in long format with columns:
id: unit identifier
state: state variable
time: time variable
partition: partition assignment
x1, x2, x3, x4: covariates
y: outcome variable
cluster: cluster ID (no within-cluster correlation)
True average treatment effect on the treated (ATT), set to 0.
Oracle ATT computed under the unfeasible specification.
Theoretical efficiency bound for the estimator.
Integer. Number of units.
Integer in {1,2,3,4}. 1 = both nuisance functions correct; 2 = only the outcome model correct; 3 = only the propensity score correct; 4 = both nuisance functions incorrect.