causal

Evaluating a Cash Transfer Program (RCT) with Panel Data in Stata

Does giving cash to poor households raise what they spend on everyday needs? Using a simulated randomized experiment with 2,000 households in Stata, we compare several ways of estimating the effect and see that all of them recover the true gain of about 12 percent. It comes with an interactive app that runs in your web browser.

Synthetic Control with Prediction Intervals: Quantifying Uncertainty in Germany's Reunification Impact

Did German reunification in 1990 lower income in West Germany, and how sure can we be? This Python tutorial builds a look-alike West Germany from other wealthy countries and adds a range of likely values around the estimate, showing income per person about 11 percent below the comparison by 2003. It comes with an interactive app that runs in your web browser.

Introduction to Difference-in-Differences in Python

Did a new policy really change outcomes, or were things already improving? This Python tutorial introduces the difference-in-differences method, which compares changes over time between places that got the policy and places that did not, using simulated data, and checks how solid the answer is. It comes with an interactive app that runs in your web browser.

Introduction to Partial Identification: Bounding Causal Effects Under Unmeasured Confounding

Does job training help people find work when an important factor, such as past work experience, was never measured? Using simulated workers in Python, we compute a range that the true effect must lie within instead of a single number, and see why more data alone cannot narrow it. It comes with an interactive app that runs in your web browser.

Introduction to Causal Inference: The DoWhy Approach with the Lalonde Dataset

Did a job training program raise the earnings of disadvantaged workers? This Python tutorial applies a four-step approach to cause and effect (state your assumptions, decide what to compare, estimate the effect and stress-test it) to the classic LaLonde job training data. It comes with an interactive app that runs in your web browser.

Introduction to Causal Inference: Double Machine Learning

Does a cash bonus help unemployed workers find jobs faster? This Python tutorial uses double machine learning, which lets flexible prediction models strip out the influence of background characteristics, on data from a real experiment in Pennsylvania. It comes with an interactive app that runs in your web browser.

Heterogeneous treatment effects via two-stage DID

An introduction to heterogeneous treatment effects using the two-stage DID estimator of Gardner (2021)

Staggered DiD (Ex1)

An introduction to difference in differences with multiple time periods and staggered treatment adoption.

Staggered DiD

An introduction to difference in differences with multiple time periods and staggered treatment adoption.

Basic DiD

An introduction to the basic differences in differences method using the classical incenerator example of Kiel and McClain (1995)