mdd_synthdid | R Documentation |
Run synthetic diff-diff
mdd_synthdid(mdd_dat, add_weights = FALSE)
mdd_dat |
An object of class mdd_dat created by |
add_weights |
return the weights? |
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.