Skip to contents

Convenience wrapper around morie_did_group_time_att and morie_did_aggregate_gt_att. For the canonical CRAN aggregator interface see did::aggte.

Usage

morie_did_staggered(
  data,
  outcome,
  unit,
  time,
  treatment_time,
  covariates = NULL,
  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.

n_bootstrap

Number of bootstrap replications for inference (forwarded as biters).

seed

RNG seed (unused; retained for back-compat).

alpha

Significance level.

Value

A list with group_time, overall, by_cohort, by_event_time.