mdd_gsynth: Run Generalized Synthetic Control Method (Xu 2017)

View source: R/estim_gsynth.R

mdd_gsynthR Documentation

Run Generalized Synthetic Control Method (Xu 2017)

Description

Simple wrapper for gsynth or fect, see help files there.

Usage

mdd_gsynth(mdd_dat, echo = FALSE, parallel = FALSE, ...)

mdd_estim_fect(mdd_dat, echo = FALSE, parallel = FALSE, ...)

Arguments

mdd_dat

An object of class mdd_dat created by mdd_data_format

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

Details

Note that packages gsynth/fect are not imported, only suggested.

See Also

mdd_synthdid for the synthetic diff-diff by Arkhangelsky et al (2019).

Examples

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

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