Accelerated Foundation in Applied Causal InferenceFor Economists · 15 modules · 45 lessons
Part IV · Quasi-Experiments for Public Policy

Module 11. Difference-in-Differences, Event Studies & Staggered Roll-outs

Compare changes, not levels, and use estimators that stay valid when policies arrive at different times.

Labour policy: minimum-wage event studies; castle-doctrine laws about 6 hours3 lessons
Module progress0/3 lessons · 0%
Lessons
11.1

Difference-in-Differences: the 2×2 Design and Parallel Trends

  • · Compute a difference-in-differences estimate from four group means
  • · Explain the parallel trends assumption and why before/after or treated/control comparisons alone fail
  • · Estimate the same DiD with a regression interaction and clustered standard errors
120 min 5 Colab cellsVideo coming soon
11.2

Two-Way Fixed Effects and Event Studies with pyfixest

  • · Estimate a two-way fixed effects (TWFE) DiD with pyfixest and clustered standard errors
  • · Build an event study with leads and lags relative to treatment
  • · Read pre-treatment coefficients as a check on parallel trends
120 min 5 Colab cellsVideo coming soon
11.3

Staggered Adoption: When TWFE Fails, and What to Use Instead

  • · Show by simulation that TWFE can be badly biased when treatment is staggered and effects grow over time
  • · Explain "forbidden comparisons" (already-treated units used as controls)
  • · Estimate cohort-specific 2×2 effects against never-treated units (the Callaway–Sant'Anna idea)
120 min 6 Colab cellsVideo coming soon