mdd_CS | R Documentation |
Simple wrapper to function att_gt
from package did.
mdd_CS(mdd_dat, ...)
mdd_dat |
An object of class mdd_dat created by |
... |
further objects passed to |
Output of att_gt
, therefore of class MP
.
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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.