Skip to contents

[Deprecated]

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 (via fixest::sunab(), requires the optional {fixest} package) is superseded by estimator = "sa" and has no equivalent argument in event_study().

conf.level

Renamed to conf_level in event_study().

Passed to event_study().

B

Renamed to boot_reps in event_study().

alpha

Renamed to boot_alpha in event_study().

Value

An es_result object; see event_study().

See also