Package: gsynth 1.2.1

Yiqing Xu

gsynth: Generalized Synthetic Control Method

Provides causal inference with interactive fixed-effect models. It imputes counterfactuals for each treated unit using control group information based on a linear interactive fixed effects model that incorporates unit-specific intercepts interacted with time-varying coefficients. This method generalizes the synthetic control method to the case of multiple treated units and variable treatment periods, and improves efficiency and interpretability. This version supports unbalanced panels and implements the matrix completion method.

Authors:Yiqing Xu, Licheng Liu

gsynth_1.2.1.tar.gz
gsynth_1.2.1.tar.gz(r-4.5-noble)gsynth_1.2.1.tar.gz(r-4.4-noble)
gsynth_1.2.1.tgz(r-4.4-emscripten)gsynth_1.2.1.tgz(r-4.3-emscripten)
gsynth.pdf |gsynth.html
gsynth/json (API)

# Install 'gsynth' in R:
install.packages('gsynth', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.45 score 2 stars 169 scripts 1.7k downloads 1 mentions 3 exports 65 dependencies

Last updated 3 years agofrom:e7d68b0034. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 21 2024
R-4.5-linux-x86_64NOTENov 21 2024

Exports:cumuEffgsynthinterFE

Dependencies:abindclicodetoolscolorspacecpp11crayondigestdoParalleldoRNGdplyrfansifarverforcatsforeachFormulafuturegenericsGGallyggplot2ggstatsglobalsgluegtablehmsisobanditeratorslabelinglatticelfelifecyclelistenvmagrittrMASSMatrixmgcvmunsellmvtnormnlmeparallellypatchworkpillarpkgconfigplyrprettyunitsprogresspurrrR6RColorBrewerRcppRcppArmadillorlangrngtoolssandwichscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithrxtablezoo

Readme and manuals

Help Manual

Help pageTopics
Generalized Synthetic Control Methodgsynth-package
Calculate Cumulative or sub-gr Treatment EffectscumuEff
Generalized Synthetic Control Methodgsynth
Internal Gsynth Functionsbeta_iter ct.adjsut data_ub_adj fe_add fe_ad_covar_iter fe_ad_inter_covar_iter fe_ad_inter_iter fe_ad_iter gsynth.default gsynth.formula initialFit interFE.default interFE.formula inter_fe inter_fe_mc inter_fe_ub panel_beta panel_est panel_factor panel_fe res.vcov synth.boot synth.core synth.em synth.em.cv synth.mc XXinv Y_demean _gsynth_beta_iter _gsynth_data_ub_adj _gsynth_fe_add _gsynth_fe_ad_covar_iter _gsynth_fe_ad_inter_covar_iter _gsynth_fe_ad_inter_iter _gsynth_fe_ad_iter _gsynth_inter_fe _gsynth_inter_fe_mc _gsynth_inter_fe_ub _gsynth_panel_beta _gsynth_panel_est _gsynth_panel_factor _gsynth_panel_fe _gsynth_XXinv _gsynth_Y_demean
Interactive Fixed Effects ModelsinterFE
Plottingplot.gsynth
Print Resultsprint.gsynth
Print Resultsprint.interFE
simdatasimdata
turnoutturnout