mdd_CS: Apply Callaway and Sant'Anna (2021) estimate

View source: R/estim_CS.R

mdd_CSR Documentation

Apply Callaway and Sant'Anna (2021) estimate

Description

Simple wrapper to function att_gt from package did.

Usage

mdd_CS(mdd_dat, ...)

Arguments

mdd_dat

An object of class mdd_dat created by mdd_data_format

...

further objects passed to att_gt

Value

Output of att_gt, therefore of class MP.

Examples

dat <- sim_dat_staggered(as_mdd = TRUE, Time=6)
mdd_CS(dat)

## with a single treatment time, this is equivalent to mdd_event_study()
dat_common <- sim_dat_common(as_mdd = TRUE, timing_treatment = 5:10)
all.equal(unname(coef(mdd_event_study(dat_common))),
          broom::tidy(mdd_CS(dat_common, base_period = "universal"))$estimate[-4])

MatthieuStigler/multiDiff documentation built on Oct. 21, 2023, 8:13 a.m.