View source: R/estim_synthdid.R
mdd_synthdid | R Documentation |
Simple wrapper for the package synthdid
mdd_synthdid(mdd_dat, add_weights = FALSE, ...)
mdd_dat |
An object of class mdd_dat created by |
add_weights |
return the weights? |
... |
Further argumetns pased to synthdid::synthdid_estimate |
Note that the package should be downloaded from github, see https://synth-inference.github.io/synthdid/
mdd_gsynth for the Generalized Synthetic Control Method by Xu (2017)
if(require(synthdid)){
data('california_prop99')
mdd_california_prop99 <- mdd_data_format(california_prop99,
y_var = "PacksPerCapita",time.index = "Year",
treat = "treated", unit.index = "State")
mdd_synthdid(mdd_dat=mdd_california_prop99)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.