Description Usage Arguments Value
Fit synthetic controls on outcomes
1 2 3 | get_ridgeaug_cov(outcomes, metadata, covs, trt_unit = 1, lambda = NULL,
scm = T, cols = list(unit = "unit", time = "time", outcome = "outcome",
treated = "treated"))
|
outcomes |
Tidy dataframe with the outcomes and meta data |
metadata |
Dataframe of metadata |
covs |
Dataframe of covariates |
trt_unit |
Unit that is treated (target for regression), default: 0 |
lambda |
Ridge hyper-parameter, if NULL use CV |
scm |
Include SCM or not |
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.