View source: R/multi_outcomes.R
augsynth_multiout | R Documentation |
Fit Augmented SCM with multiple outcomes
augsynth_multiout(
form,
unit,
time,
t_int,
data,
progfunc = c("Ridge", "None"),
scm = T,
fixedeff = FALSE,
cov_agg = NULL,
combine_method = "avg",
...
)
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, |
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 |
combine_method |
How to combine outcomes: ‘concat' concatenates outcomes and 'avg' averages them, default: ’avg' |
... |
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.