Skip to contents

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 Inf for 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.

Value

A data frame with columns cohort, time, att, std_error, ci_lower, ci_upper, p_value.

References

Callaway, B., & Sant'Anna, P. H. C. (2021). Difference-in-Differences with multiple time periods. Journal of Econometrics, 225(2), 200–230.