single_augsynth | R Documentation |
Fit Augmented SCM
single_augsynth(
form,
unit,
time,
t_int,
data,
progfunc = "ridge",
scm = T,
fixedeff = FALSE,
cov_agg = NULL,
...
)
form |
outcome ~ treatment | auxillary covariates |
unit |
Name of unit column |
time |
Name of time column |
t_int |
Time of intervention |
data |
Panel data as dataframe |
progfunc |
What function to use to impute control outcomes ridge=Ridge regression (allows for standard errors), none=No outcome model, en=Elastic Net, RF=Random Forest, GSYN=gSynth, mcp=MCPanel, cits=Comparitive Interuppted Time Series causalimpact=Bayesian structural time series with CausalImpact |
scm |
Whether the SCM weighting function is used |
fixedeff |
Whether to include a unit fixed effect, default F |
cov_agg |
Covariate aggregation functions, if NULL then use mean with NAs omitted |
... |
optional arguments for outcome model |
augsynth object that contains:
"weights"Ridge ASCM weights
"l2_imbalance"Imbalance in pre-period outcomes, measured by the L2 norm
"scaled_l2_imbalance"L2 imbalance scaled by L2 imbalance of uniform weights
"mhat"Outcome model estimate
"data"Panel data as matrices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.