Description Usage Arguments Value
Fit l2 entropy regularized synthetic controls on outcomes Wrapper around fit_l2_entropy_formatted
1 2 | fit_entropy(outcomes, metadata, trt_unit = 1, eps = NULL,
outcome_col = NULL, lasso = FALSE)
|
outcomes |
Tidy dataframe with the outcomes and meta data |
metadata |
Dataframe of metadata |
trt_unit |
Unit that is treated (target for regression), default: 0 |
eps |
Bound on synthetic control differences |
outcome_col |
Column name which identifies outcomes, if NULL then assume only one outcome |
lasso |
Whether to do lasso (every covariate is separate) |
Weights for synthetic controls, control outcomes as matrix, and whether the unit is actually treated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.