run_es() was renamed to event_study() in fixes 1.0.0. It remains
fully functional (including method = "sunab", which is superseded by
estimator = "sa"), but new code should use event_study().
Usage
run_es(
data,
outcome,
treatment = NULL,
time,
timing,
fe = NULL,
lead_range = NULL,
lag_range = NULL,
covariates = NULL,
cluster = NULL,
weights = NULL,
baseline = -1L,
interval = 1,
time_transform = FALSE,
rel_time = NULL,
unit = NULL,
staggered = FALSE,
method = c("classic", "sunab"),
estimator = c("twfe", "cs", "sa", "bjs", "twm", "flex"),
control_group = c("nevertreated", "notyettreated"),
anticipation = 0L,
conf.level = 0.95,
vcov = "HC1",
vcov_args = list(),
bootstrap = FALSE,
B = 999L,
alpha = 0.05,
boot_seed = NULL,
group = NULL,
trends = FALSE
)Arguments
- data, outcome, treatment, time, timing, fe, lead_range, lag_range
Passed to
event_study().- covariates, cluster, weights, baseline, interval, time_transform
Passed to
event_study().- rel_time, unit, staggered, estimator, control_group, anticipation
Passed to
event_study().- method
Either
"classic"(default) or"sunab". The"sunab"path (viafixest::sunab(), requires the optional {fixest} package) is superseded byestimator = "sa"and has no equivalent argument inevent_study().- conf.level
Renamed to
conf_levelinevent_study().- vcov, vcov_args, bootstrap, boot_seed, group, trends
Passed to
event_study().- B
Renamed to
boot_repsinevent_study().- alpha
Renamed to
boot_alphainevent_study().
Value
An es_result object; see event_study().