did

Do Industrial Parks Work? Evaluating Place-Based Policy in Ethiopia with Difference-in-Differences

Do industrial parks bring more economic activity to nearby towns, and who benefits? This Python tutorial compares places that got a park with places that did not, before and after it opened, using simulated data modeled on Ethiopia, and also looks at household welfare and outcomes for women. It comes with an interactive app that runs in your web browser.

Bouncing Back Better? Evaluating the Economic Impact of the Aceh Tsunami

How did the 2004 tsunami affect the economy of Aceh, Indonesia, over the long run? This beginner-friendly Python tutorial uses simulated data, nighttime lights, and several causal methods to compare damaged and undamaged areas before and after the disaster.

Six Ways to Evaluate a Policy using R: Comparative Case Studies of Proposition 99

Did the 1988 California cigarette tax reduce cigarette sales, and do different methods agree on how much? This R tutorial applies six ways of evaluating a policy to the same data and finds that most point to a drop of roughly 13 to 20 packs per person each year. It comes with an interactive app that runs in your web browser.

Introduction to Difference-in-Differences (DiD) in Python

Did an after-school tutoring program really raise student grades, or were grades rising everywhere? This Python tutorial compares 10 tutored high schools with 25 others, before and after the program, to separate its effect from the general upward trend. It comes with an interactive app that runs in your web browser.

Introduction to Difference-in-Differences (DiD) in Stata

Did an after-school tutoring program raise the grades of low-income high school students? Using simulated data on 35 schools in Stata, we compare how grades changed in schools with and without the program, and we check whether both groups were on similar paths before it started. It comes with an interactive app that runs in your web browser.

Sensitivity Analysis for Parallel Trends in Difference-in-Differences Using honestdid in Stata

Did expanding Medicaid in some American states raise health insurance coverage among low-income adults, and how much can we trust that answer? In Stata, we measure how far the states could drift apart before the estimated gain would disappear, turning a yes-or-no check into a clear measure of robustness. It comes with an interactive app that runs in your web browser.