Thin wrapper around did::att_gt. For each cohort \(g\) and
each post-treatment calendar period t, estimates
\(\mathrm{ATT}(g, t)\). Hard-errors if did is
not installed.
Usage
morie_did_group_time_att(
data,
outcome,
unit,
time,
treatment_time,
covariates = NULL,
method = "doubly_robust",
control_group = "never_treated",
n_bootstrap = 200L,
seed = 42L,
alpha = 0.05
)Arguments
- data
Panel data.
- outcome
Outcome column.
- unit
Unit identifier.
- time
Calendar-time column (integer).
- treatment_time
Column with treatment-onset period (use
Inffor never-treated).- covariates
Optional covariates for doubly-robust estimation.
- method
One of
"doubly_robust"(default),"ipw", or"outcome_regression".- control_group
"never_treated"or"not_yet_treated".- n_bootstrap
Number of bootstrap replications for inference (forwarded as
biters).- seed
RNG seed (unused; retained for back-compat).
- alpha
Significance level.