recent_group: Lexically minimizes the imbalance in two groups, recent and...

Description Usage Arguments Value

Description

Lexically minimizes the imbalance in two groups, recent and old

Usage

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"))

Arguments

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

Value

Fitted SC with lexically minimized imbalance in time groups


ebenmichael/ents documentation built on May 31, 2019, 8:45 p.m.