mdd_synthdid: Run synthetic diff-diff by Arkhangelsky et al (2019)

View source: R/estim_synthdid.R

mdd_synthdidR Documentation

Run synthetic diff-diff by Arkhangelsky et al (2019)

Description

Simple wrapper for the package synthdid

Usage

mdd_synthdid(mdd_dat, add_weights = FALSE, ...)

Arguments

mdd_dat

An object of class mdd_dat created by mdd_data_format

add_weights

return the weights?

...

Further argumetns pased to synthdid::synthdid_estimate

Details

Note that the package should be downloaded from github, see https://synth-inference.github.io/synthdid/

See Also

mdd_gsynth for the Generalized Synthetic Control Method by Xu (2017)

Examples

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)
}

MatthieuStigler/multiDiff documentation built on Feb. 14, 2025, 12:02 a.m.