Skip to content

Panel, Difference-in-Differences and Discontinuity

Causal and repeated-measures designs common in economics and policy research.

  • Panel regression: units (people, firms, countries) observed repeatedly.
  • DID: a treated and a control group observed before and after an intervention.
  • Discontinuity: treatment assigned by a cutoff on a score.
  • Fixed effects remove time-invariant unit differences; random effects assume they are unrelated to predictors (Hausman test).
  • DID assumes parallel trends; regression discontinuity assumes no manipulation of the running variable at the cutoff.
  • Hausman: a significant test favours fixed effects.
  • DID estimate: the treated × post coefficient.
  • Discontinuity estimate: the jump at the cutoff; check it is stable at half and double the bandwidth.
  • Robust bias-corrected: report this row’s interval, which allows for the smoothing bias. Its pilot bandwidth b is the Calonico-Cattaneo-Titiunik MSE-optimal one (as in rdrobust); /BANDWIDTH=h b sets it yourself.

Under parallel trends, the program raised monthly sales by 2.0 units (95% CI [1.75, 2.21], clustered by store).

Syntax: PANEL REGRESSION invest WITH value capital /ID=firm.


This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.