View source: R/generate_data.R
gen_dgp_2periods | R Documentation |
Generate panel data with a single treatment date and two periods
gen_dgp_2periods(size, dgp_type)
size |
Integer. Number of units. |
dgp_type |
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.