← Visualization gallery
Causal inference · Implementation

Event-Study Plot (DiD Parallel-Trends Diagnostic)

Displays treatment-effect estimates (β_t) and 95% CIs for each period relative to the omitted pre-treatment reference period (t=−1) in a difference-in-differences or staggered-adoption design. Pre-period coefficients near zero support the parallel-trends assumption; post-period coefficients trace...

Event-Study Plot (DiD Parallel-Trends Diagnostic): Displays treatment-effect estimates (β_t) and 95% CIs for each period relative to the omitted pre-treatment reference period (t=−1) in a difference-in-differences or staggered-adoption design. Pre-period coefficients near zero support the parallel-trends assumption; post-period coefficients trace the dynamic treatment effect.
When to use it

After fitting a two-way fixed-effects (or Sun–Abraham / Callaway–Sant'Anna) model with full leads and lags. Plot all pre-treatment coefficients to test parallel trends — they should be jointly indistinguishable from zero. Post-treatment coefficients reveal whether the effect is immediate, delayed, or fading.

How to read it

β_{t=−1} is normalized to 0 (reference). Pre-period coefficients wandering from zero signal pre-existing trends that violate parallel trends. Post-period estimates rising above zero indicate a treatment effect. Wide CIs for early pre-periods reflect smaller effective samples and are expected.

Worked example

A claims-based DiD study evaluates a formulary policy change (treatment) on monthly hospitalisation rate per 1 000 members. The model is fit with 4 pre-periods (t = −4 to t = −2; t = −1 is the omitted reference) and 5 post-periods (t = 0 to t = +4). Coefficients and SEs are extracted from the TWFE regression.

Pre-periods β (SE): t−4 = −0.8 (1.1), t−3 = 0.5 (1.0), t−2 = −0.3 (0.9), t−1 = 0 (reference). Post-periods β (SE): t0 = 2.1 (1.0), t+1 = 3.8 (1.1), t+2 = 4.9 (1.2), t+3 = 5.5 (1.3), t+4 = 6.0 (1.4).

Result: Pre-period coefficients −0.8, +0.5, −0.3 are all within ±2 SE of zero (joint F-test p = 0.71), supporting parallel trends. Post-period estimates rise monotonically from 2.1 at t=0 to 6.0 at t=+4, indicating a growing treatment effect of ≈6 hospitalisations per 1 000 members per month by the fourth post-period. The 95% CI at t+4 is 6.0 ± 1.96 × 1.4 = (3.26, 8.74).

Produced by

Reference: Gatto NM, Wang SV, Murk W, et al. Visualizations throughout pharmacoepidemiology study planning, implementation, and reporting. Pharmacoepidemiol Drug Saf. 2022;31(11):1140-1152.