Difference-in-Differences

methodscausal-inferencedifference-in-differencesnatural-experimentspanel-dataparallel-trendspolicy-evaluationidentificationeconometricsarea-fixed-effects

Definition

Difference-in-differences (DiD) is a causal identification strategy that compares the change in outcomes over time for a group affected by a treatment to the change in outcomes over time for an unaffected comparison group. By subtracting each group's time trend from the other's, DiD removes both time-invariant group differences and common time shocks, isolating the treatment effect — provided the treatment and comparison groups would have evolved in parallel absent the treatment (the parallel trends assumption).

Key Ideas

Triple-Differences

When treatment varies along three dimensions, the treatment indicator is a three-way interaction:

yitjk=α+α1dt+α1dj+γ1ek+α11dtj+γ11etk+α11djk+βdtjk+εitjky_{it}^{jk} = \alpha + \alpha_1 d_t + \alpha^1 d_j + \gamma^1 e_k + \alpha_1^1 d_t^j + \gamma_1^1 e_t^k + \alpha^{11} d^{jk} + \beta d_t^{jk} + \varepsilon_{it}^{jk}

The coefficient β\beta on the three-way interaction dtjkd_t^{jk} is the treatment effect. Including all main effects and first-order interactions is required; omitting them confounds the three-way effect with the omitted lower-order interactions.

Examples:

Triple-differences removes state×time and state×group trends simultaneously, exploiting the demographic-group variation within states as the identifying variation.

Probing Comparability

The DiD design rests on the comparability of treatment and comparison groups conditional on removing common time trends. Several design features test this assumption:

Area FE vs. Individual FE vs. Population-Segment FE (Moffitt 2005)

DiD designs come in three distinct variants that differ in what "groups" and "changes" refer to:

The key practical implication: DiD designs that do not include an instrument for the within-group variation in T (i.e., individual or population-segment fixed-effects designs) are weaker than area fixed-effects designs that explicitly instrument for individual T changes.

Connection to Instrumental Variables

A policy-change dummy variable in a DiD design can serve directly as an instrument for a continuous endogenous treatment variable. When the policy deterministically assigns treatment groups to a changed benefit level, the policy dummy becomes the first-stage instrument in Two-Stage Least Squares (2SLS), and the second-stage estimates the derivative of the outcome with respect to the continuous benefit amount rather than the binary treatment indicator. This is the connection between DiD and Instrumental Variables in the workers' compensation literature (Meyer, Viscusi, and Durbin 1990/1995).

Internal Validity Threats Addressed by DiD

DiD addresses several of Campbell's internal validity threats relative to simple before/after:

The main residual threat is the omitted interaction (Campbell threat 9) — a differential trend or differential response to an omitted variable that affects one group but not the other. This is precisely what the parallel trends assumption rules out and what pre-trend tests probe.

Open Questions

Related

Sources