Enter Group Statistics
DiD Formula
DiD Results
DiD Decomposition Chart
2×2 Summary & Regression Coefficients
| Before | After | Change | |
|---|---|---|---|
| Treatment | 45.00 | 55.00 | 10.00 |
| Control | 40.00 | 44.00 | 4.00 |
| Difference | 5.00 | 11.00 | DiD = 6.00 |
Regression Coefficient Mapping
Formula Breakdown
Model Assumptions & Limitations
- Parallel Trends (most critical): Absent treatment, the treatment group would have followed the same change in outcomes as the control group. This is an untestable assumption with only one pre-period.
- No Anticipation Effects: The treatment group did not alter behavior before the intervention in expectation of it.
- Stable Composition: No selection into or out of the treatment group over time.
- No Spillovers (SUTVA): The treatment does not affect control group outcomes.
- Sharp Treatment Timing: The intervention occurs at a single, well-defined point in time.
- Group Independence: Treatment and control groups are independent samples.
- No Concurrent Group-Specific Shocks: No other events differentially affected the treatment group during the study period.
For educational purposes. Not financial advice. Statistical conventions simplified for educational purposes.
Understanding Difference-in-Differences
What is Difference-in-Differences?
Difference-in-differences (DiD) is a quasi-experimental research design that estimates causal effects by comparing the change in outcomes over time between a treatment group (affected by a policy or event) and a control group (unaffected). The "double difference" removes both time-invariant group differences and common time trends, isolating the average treatment effect on the treated (ATT).
b3 = DiD treatment effect (ATT under parallel trends)
The Parallel Trends Assumption
The key identifying assumption is that, absent the treatment, the treatment group would have experienced the same change (not level) in outcomes as the control group. With only one pre-period, this assumption cannot be tested directly. Researchers often use event-study designs with multiple pre-treatment periods to assess whether pre-treatment trends appear similar.
Textbook Example: Workers' Compensation
Wooldridge (Chapter 13) presents the Meyer, Viscusi, and Durbin (1995) study of Kentucky raising the cap on workers' compensation earnings coverage. The treatment group (high-income workers affected by the cap increase) showed a DiD estimate of 0.191 (t = 2.77), meaning the average duration on workers' compensation increased by about 19% for the affected group relative to the control.
Frequently Asked Questions
Disclaimer
This calculator is for educational purposes only and computes the 2×2 DiD treatment effect from group-level summary statistics. It assumes independent observations within cells and does not provide cluster-robust inference. For applied research, use statistical software (Stata, R, Python) with cluster-robust standard errors. This tool should not be used as the sole basis for policy or investment decisions.