Difference-in-Differences in Education Research

Statistics
Introduced by
Dynarski, Card, Angrist, and colleagues — applied in education economics from the 1990s onward
Year
1990s–2000s
Type
Quasi-experimental causal inference
Family
Quasi-experimental / causal inference

What does it do?

Difference-in-differences (DiD) applied to education research compares changes in student, school, or district outcomes between a group exposed to a policy or program and a comparable group that was not exposed, measured before and after the intervention.

Subtracting the comparison group's change from the exposed group's change separates the policy effect from background trends that affect both groups. It is a quasi-experimental design for settings where randomization is not feasible.

The intuition behind the method

Education systems rarely allow randomized experiments, yet policies such as a new scholarship program, a class-size reform, or a school accountability mandate seldom affect all students or districts at the same time. DiD uses this uneven rollout: it measures how outcomes shifted for the units reached by a policy and subtracts the shift observed in a comparable untreated group over the same period. Any remaining difference in change is attributed to the policy, on the assumption that the comparison group shows what would have happened without it. The design is most persuasive when the comparison group has tracked the treated group closely before the policy began. Staggered rollouts, in which districts adopt a policy in different years, give useful timing variation, but they require estimators that handle differing treatment timing, as discussed below.

History

Dynarski (2003) measures the effect of student financial aid on college attendance and completion. Angrist and Lavy (1999) used Maimonides' rule, a maximum class size of 40 in Israeli schools, to build instrumental variables estimates of class-size effects on test scores. Their abstract describes this identification strategy as an application of Campbell's regression-discontinuity design, not a difference-in-differences comparison, so the study is cited here as an example of quasi-experimental education research that uses a different design.

When to use it

Use DiD in education research when a policy, program, or reform affects some students, schools, or districts but not others, and you have panel or repeated cross-sectional outcome data covering periods before and after the intervention. It suits evaluations of financial aid programs, class-size policies, accountability reforms, and teacher training or curriculum initiatives, provided the treated and comparison groups can plausibly share trends. Avoid it when only post-intervention data exist, when treatment assignment is driven by pre-existing differences in outcome trends, or when the number of clusters is too small for reliable inference. In those cases, other designs or a different inference approach are needed.

Limitations and considerations

  • The parallel-trends assumption concerns the counterfactual trend in the treated group after the policy, which cannot be observed; pre-period parallel trends support it but do not prove it.
  • Staggered rollout across cohorts or districts complicates estimation; the simple two-way fixed-effects estimator can produce misleading estimates when treatment effects differ across adoption timing.
  • Education datasets are often clustered within schools or districts; ignoring this clustering overstates precision.
  • Anticipation effects, such as students or schools adjusting behavior before a formal policy start, can contaminate the pre-period baseline and bias the DiD estimate.
  • Spillovers between treatment and control schools in the same district or area violate the stable-unit treatment value assumption and can distort the estimated effect in either direction.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Supports causal estimates of education policies without a randomized experiment, using variation in when or where a program was rolled out.
  • Removes fixed differences between treated and comparison groups (such as persistent school characteristics) and common shocks affecting both groups, but only if the parallel-trends assumption holds.
  • The event-study extension shows pre-period coefficients that can check the parallel-trends assumption and post-period coefficients that show how the effect evolves over time.
  • Applies to continuous outcomes such as test scores, and to binary outcomes such as graduation or count outcomes such as enrollment. For nonlinear models, the interaction coefficient is not the effect on the outcome's natural scale, so the estimate should be translated to that scale (for example, as a marginal effect) and the model choice stated explicitly.

Applications

  • Evaluating the effect of merit-based or need-based financial aid programs on college enrollment and completion rates.
  • Estimating the impact of class-size reductions or teacher staffing policies on student achievement test scores.
  • Assessing whether school accountability mandates or curricula reforms raise graduation or proficiency rates.
  • Measuring how early childhood education program expansions affect cognitive and socio-emotional outcomes.
  • Studying the earnings returns to educational reforms that changed compulsory schooling laws in specific cohorts or regions.
  • Examining the effect of school choice or voucher programs on student outcomes in treated versus control districts.

How it works

How it works

1

Identify a policy or program that affected one group of students, schools, or districts (treatment) but not another comparable group (control). Collect outcome data, such as test scores, enrollment rates, graduation rates, or earnings, for both groups in at least one period before and one period after the intervention.

2

In the two-period case, regress the outcome on a treatment indicator, a post-period indicator, and their interaction, along with student- or school-level covariates; the displayed formula is this specification. In staggered rollout settings, a two-way fixed-effects specification with unit and time fixed effects is commonly used, but the displayed formula does not show those fixed effects. Heterogeneous-treatment-effect estimators are preferred when treatment timing varies across units.

Formula
y_{it} = \beta_0 + \beta_1\,\text{Treat}_i + \beta_2\,\text{Post}_t + \beta_3\,(\text{Treat}_i \times \text{Post}_t) + X_{it}\gamma + \varepsilon_{it}
3

The causal effect estimate, the average treatment effect on the treated (ATT), is the interaction coefficient. In the two-period, two-group case without covariates, it equals the treatment group's before-after change minus the control group's before-after change, which removes fixed group differences and common time trends. With covariates, the coefficient is a regression-adjusted estimate and does not reduce to the difference in the four group means.

Formula
\hat{\tau}_{ATT} = \hat{\beta}_3 = (\bar{y}_{T,\text{post}} - \bar{y}_{T,\text{pre}}) - (\bar{y}_{C,\text{post}} - \bar{y}_{C,\text{pre}})
4

Check the parallel-trends assumption by plotting and testing pre-treatment outcome trends for both groups. If the trends were already diverging before the policy, the DiD estimate is biased. In an event study, pre-period coefficients should be statistically indistinguishable from zero. Event-study plots that display period-by-period interaction coefficients are the standard diagnostic in education research.

5

Cluster standard errors at the school or district level, the level at which outcomes are correlated and at which treatment is often assigned. When the number of clusters is small, conventional cluster-robust standard errors can be unreliable; in that case, report wild cluster bootstrap standard errors alongside them as a sensitivity check. Report the ATT, its confidence interval, and the results of the parallel-trends event-study check.

Common pitfalls

  • Failing to plot and test pre-treatment trends; an event study showing divergent pre-trends undermines the parallel-trends assumption and the causal interpretation.
  • Using simple two-way fixed effects with staggered rollout and heterogeneous effects; use estimators designed for staggered adoption, which allow treatment effects to differ across adoption cohorts and periods.
  • Not clustering standard errors at the level of treatment assignment, which leads to understated p-values and false precision.
  • Treating the first available data year as the pre-period without checking whether the policy was anticipated or partly implemented earlier.
  • Reporting only one post-period when the policy effect may change over time; event-study plots across several post-periods show the dynamics more clearly.

Frequently asked questions

How is this different from a standard DiD?

The core estimator is the same, but applying DiD in education research requires attention to education-specific features: outcomes clustered within schools, staggered policy rollouts across districts or cohorts, anticipation effects, and spillovers. These features call for clustered standard errors, event-study diagnostics, and, under staggered adoption, estimators designed for heterogeneous treatment effects rather than simple two-way fixed effects.

What is an event-study plot and why is it important?

An event-study plot displays the DiD interaction coefficient for each period relative to the policy start (e.g., two years before, one year before, the year of, one year after). Pre-period coefficients should be statistically indistinguishable from zero, ideally confirmed with a joint test of their significance and reported with confidence intervals; if they are not, the parallel-trends assumption is called into question. Post-period coefficients show whether the effect grew, faded, or remained stable over time.

What if policies rolled out in different years for different districts?

This is called staggered adoption. The simple two-way fixed-effects estimator can give misleading estimates when treatment effects differ across adoption cohorts. Use estimators designed for staggered designs, which estimate effects separately for each adoption cohort and period and then aggregate them, rather than relying on a single pooled coefficient.

How should I handle clustering in education data?

Cluster standard errors at the level where treatment was assigned, typically the school or district. When the number of clusters is small, standard cluster-robust errors may be unreliable, and a wild cluster bootstrap is often preferred. Avoid clustering at a finer level (e.g., individual student) if treatment varies at a coarser level (e.g., school).

What is the minimum data requirement?

You need outcome data for at least one pre-treatment period and one post-treatment period for both a treatment and a control group. In practice, two or more pre-periods are strongly recommended so that parallel trends can be tested via an event-study plot. Sample size at the unit level (students or schools) should be sufficient to support the clustering level used for inference.

Related methods

Sources

  1. Dynarski, S. M. (2003). Does Aid Matter? Measuring the Effect of Student Aid on College Attendance and Completion. American Economic Review, 93(1), 279-288.

    Open DOI reference
  2. Angrist, J. D., & Lavy, V. (1999). Using Maimonides' Rule to Estimate the Effect of Class Size on Scholastic Achievement. Quarterly Journal of Economics, 114(2), 533-575.

    Open DOI reference