Skip to content
StatsOtter A workspace for causal thinking
Method library WORKFLOW / 035
Research workflow/4 steps

Honest sensitivity bounds for parallel-trends violations (HonestDiD)

Source HonestDiD — Rambachan & Roth
01
The method workspace

Follow the analysis.

Select a node to explore the method

Method mapInput → 4 steps → output
START WITHInput data
ARRIVE ATResults
Read step 01
Inside the methodReasoning, equations & implementation
Step 1 of 4
01
Data prep

Start from event-study coefficients

Data preparation — shapes the raw inputs into what the estimator expects.

What happens here

Take β̂ (pre- and post-treatment event-time coefficients) and its covariance Σ from whatever DiD estimator you trust.

Formula
\hat\beta\sim\mathcal N(\beta,\Sigma),\qquad \beta=(\beta_{\text{pre}},\,\beta_{\text{post}})
Reads fromNot specified Feeds intoNot specified
Key code
es <- fixest::feols(y ~ i(rel_time, ref = -1) | id + period, df)
betahat <- coef(es); sigma <- vcov(es)

Reference / docs ↗

Discussion on this step (0)
StatsOtterDiscussion starter · Editorial note

Before using this step, make its assumptions and its output explicit. A useful peer note explains what you would check, what could go wrong, or what would change your interpretation.

Questions to explore
  1. Which assumption matters most here, and what evidence could challenge it?
  2. What would you check before passing this output to the next step?

Peer discussion

  • Bring your experience, a question, or a different perspective.
02
Data contract

Inputs & data

An event-study: the vector of pre- and post-treatment coefficients and their covariance matrix (from any DiD / event-study estimator).

Show data format & exampleHide example

Format — the event-study coefficient vector betahat and its covariance sigma (e.g. from fixest/did).

library(HonestDiD)
# betahat: pre + post event-time coefficients
# sigma:   their covariance matrix; numPrePeriods / numPostPeriods
03
Read the evidence

Results & interpretation

2 figures Workflow discussion 2
01FigureEvent-study estimates (Medicaid expansion on insurance coverage): flat pre-trends, then a post-2013 jump — the input HonestDiD stress-tests.
02FigureRobust confidence sets as the allowed post-period trend deviation M̄ grows: the effect stays significant until M̄ ≈ 2 — its breakdown value.

Figures reproduced from HonestDiD — Rambachan & Roth — unofficial community showcase; all credit to the original authors.

Context & interpretation

⚠️ Unofficial community showcase of honestdid. Not affiliated with the authors; all credit to them.

Stop betting everything on a pre-trends test. Allow the post-treatment trend to deviate within a transparent class, and report the confidence set — and the breakdown value where the effect would vanish.

Peer notes

Discuss the workflow (2)

  • 2

    Replacing the pre-trends test with explicit bounds is the right move. The breakdown M̄* is exactly what referees keep asking me for.

  • 0

    I report the relative-magnitudes set next to the point estimate by default now — it pre-empts the 'but parallel trends' question.

    1

    Same. Pairing it with the event-study plot makes the whole argument legible in one figure.

IN THE MARGINS

Peer discussion