Difference-in-differences: estimate a treatment effect
Exercise
Average employment per store: treated 20.4 → 21; control 23.3 → 21.2. Compute the treated change, the control change and the DiD estimate.
Answers are checked in your browser. Sign in (free) to save progress and earn assessment records.
Live outputs
| Treated change | 0.6 |
| Control change | -2.1 |
| DiD estimate | 2.7 |
Practice mode shows the computed answers as you change inputs.
What you will learn
- Compute a 2×2 difference-in-differences estimate
- Interpret pre-trends
- State the identifying assumption
Explanation
Difference-in-differences compares the change in an outcome for a treated group with the change for a control group over the same period: DiD = (T_post − T_pre) − (C_post − C_pre).
The control group's change estimates what would have happened to the treated group without treatment. This requires parallel trends: absent treatment, both groups would have moved together. Diverging pre-period trends are evidence against it.
Worked example
Average employment per store: treated 20.4 → 21; control 23.3 → 21.2. Compute the treated change, the control change and the DiD estimate.
| Treated change | 0.6 |
| Control change | -2.1 |
| DiD estimate | 2.7 |