Skip to contents

For each candidate fake time in placebo_times, redefines the post indicator and estimates a 2x2 DiD on pre-true-treatment data.

Usage

morie_did_placebo_test_time(
  data,
  outcome,
  treatment,
  time,
  true_treatment_time,
  placebo_times,
  covariates = NULL,
  cluster = NULL,
  alpha = 0.05
)

Arguments

data

Data frame.

outcome, treatment, time

Column names.

true_treatment_time

The actual treatment-onset time (data are restricted to pre-period observations).

placebo_times

Vector of candidate fake treatment times.

covariates

Optional character vector of covariate column names.

cluster

Optional cluster ID column for CR1 standard errors.

alpha

Significance level for confidence intervals (default 0.05).

Value

A data frame, one row per placebo time.