Function that generates panel data with single treatment date assignment and two time periods.
gen_dgp_2periods.Rd
Generate panel data with a single treatment date and two periods
Value
A list with the following elements:
- data
A
data.table
in long format with columns:id
: unit identifierstate
: state variabletime
: time variablepartition
: partition assignmentx1
,x2
,x3
,x4
: covariatesy
: outcome variablecluster
: cluster ID (no within-cluster correlation)
- att
True average treatment effect on the treated (ATT), set to 0.
- att.unf
“Oracle” ATT computed under the unfeasible specification.
- eff
Theoretical efficiency bound for the estimator.