mdd_CS | R Documentation |
Simple wrapper to function att_gt
from package did.
mdd_CS(mdd_dat, timing_treat_var = NULL, panel = NULL, ...)
mdd_dat |
An object of class mdd_dat created by |
timing_treat_var |
variable indicating the timing to treat. Not necessary, unless the dataset is not balanced |
panel |
Argument |
... |
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.