Description Usage Arguments Value
Lexically minimizes the imbalance in two groups, recent and old
1 2 3 | recent_group(outcomes, metadata, t_past, trt_unit = 1, by = 0.1,
maxep = 1, cols = list(unit = "unit", time = "time", outcome = "outcome",
treated = "treated"))
|
outcomes |
Tidy dataframe with the outcomes and meta data |
metadata |
Dataframe of metadata |
t_past |
Number of recent time periods to balance especially |
trt_unit |
Unit that is treated (target for regression), default: 0 |
by |
Step size for tolerances to dry, default: 0.1 * magnitude |
maxep |
Maximum tolerance to consider |
cols |
Column names corresponding to the units, time variable, outcome, and treated indicator |
Fitted SC with lexically minimized imbalance in time groups
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.