mdd_synthdid: Run synthetic diff-diff

View source: R/synth_diff.R

mdd_synthdidR Documentation

Run synthetic diff-diff

Description

Run synthetic diff-diff

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?

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 Oct. 21, 2023, 8:13 a.m.