Description Usage Arguments Value
Fit outcome model and balance residuals
1 2 3 4 5 | get_augsyn(outcomes, metadata, trt_unit = 1, progfunc = c("EN", "RF",
"GSYN", "COMP", "MCP", "CITS", "CausalImpact", "seq2seq"),
weightfunc = c("SC", "ENT"), opts.prog = NULL, opts.weights = NULL,
outcome_col = NULL, cols = list(unit = "unit", time = "time", outcome =
"outcome", treated = "treated"))
|
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 EN=Elastic Net, RF=Random Forest, GSYN=gSynth, Comp=softImpute, MCP=MCPanel, CITS=CITS |
weightfunc |
What function to use to fit weights SC=Vanilla Synthetic Controls, ENT=Maximum Entropy |
opts.prog |
Optional options for fitting prognostic score |
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.