mdd_gsynth | R Documentation |
Simple wrapper for gsynth
or fect
, see help files there.
mdd_gsynth(mdd_dat, echo = FALSE, parallel = FALSE, ...)
mdd_estim_fect(mdd_dat, echo = FALSE, parallel = FALSE, ...)
mdd_dat |
An object of class mdd_dat created by |
echo |
Whether to print the messages of gsynth or not. Default to TRUE |
parallel |
Argument passed to gsynth, default is FALSE. |
... |
Further arguments passed to gsynth |
Note that packages gsynth/fect are not imported, only suggested.
mdd_synthdid
for the synthetic diff-diff by Arkhangelsky et al (2019).
if(require(gsynth)){
data(gsynth)
mdd_simdata_gs <- mdd_data_format(simdata,
y_var = "Y",time.index = "time",
treat = "D", unit.index = "id")
res <- mdd_gsynth(mdd_dat=mdd_simdata_gs)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.