Difference in Differences

Difference in differences is a quasi-experimental method.


Description

The method can be expressed as:

graph.png

where A, B, C, and D represent sample statistics; and where A and C are from treated samples. There is an assumption of parallel trends: absent treatment, AC should be parallel to BD as average change would have been equivalent.

The interpretation becomes:


Implementation

The method is generally implemented using OLS regression.

Given indicators T where Tt=1 if time period t is the second one, and S where Si=1 if observation i is in the treatment group, fit the following model:

Yit = β0 + β1Tt + β2Si + β3(TtSi) + ϵit

The coefficients can be interpreted as:

Fixed effects for both units and time periods are generally included, leading to these being called two-way fixed effects models.

Alternatively, calculate the first differenced outcomes as Y'i = Yi2 - Yi1. Now fit the model:

Y'i = β1 + β3Si + (ϵi2 - ϵi1)

Once again, β3 is the difference in differences.


CategoryRicottone

Statistics/DifferenceInDifferences (last edited 2025-10-15 17:05:54 by DominicRicottone)