Description Usage Arguments Value
Weighted Least Squares Standard Errors
1 2 3 | wls_se_synth(outcomes, metadata, trt_unit = 1, pred_int = F, hc = 0,
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 |
Treated unit |
pred_int |
Whether to add outcome control variance to make pred interval |
hc |
Type of HC variance estimate (-1 for homoskedastic) |
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.