Description Usage Arguments Value
Get weights then fit outcome model with weighted loss function
1 2 3 4 5 |
outcomes |
Tidy dataframe with the outcomes and meta data |
metadata |
Dataframe of metadata |
trt_unit |
Unit that is treated (target for regression), default: 0 |
progfunc |
What function to use to impute control outcomes GSYN=gSynth, COMP=softImpute, MCP=MCPanel |
weightfunc |
What function to use to fit weights SC=Vanilla Synthetic Controls, ENT=Maximum Entropy SVD=SCM after dimension reduction, NONE=No reweighting, just outcome model |
opts.prog |
Optional options for gsynth |
opts.weights |
Optional options for fitting synth weights |
outcome_col |
Column name which identifies outcomes, if NULL then assume only one outcome |
cols |
Column names corresponding to the units, time variable, outcome, and treated indicator |
outcomes with additional synthetic control added and weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.