Causal Inference: Difference-in-Differences & Regression Discontinuity

BASC0005 Quantitative Methods 2: Data Science and Visualisation

Ollie Ballinger

Outline

  1. Why correlation isn’t enough
  2. Difference-in-Differences
  3. Case Study: The Mariel Boatlift
  4. Regression Discontinuity
  5. Case Study: Irrigation and Insurgency
  6. Auditing a causal claim

Correlation vs. Causation

  • Just because we observe a correlation between X and Y, we cannot say that X causes Y.
  • We observe that broadly, as minimum wages increase over time, poverty decreases. Our regression returns statistically significant results. Why might we hesitate in saying for certain that increasing the minimum wage decreases poverty?
  • Endogeneity
    • Occurs when the independent variable X is correlated with the error term e.

Endogeneity

  • There are three main sources of endogeneity:
    1. Omitted Variables
      • The relationship between X and Y is mediated by an unobserved variable Z.
      • E.g. i run a regression between the percent of a district that is forest and the total number of crimes in a year. Massive negative effect. Do trees reduce crime?
    2. Simultaneity
      • X causes Y, but Y also causes X. In its most extreme form, we might worry about reverse causality.
      • E.g. If I run a panel regression across countries where x=poverty and y=conflict incidence, I’ll probably see a correlation. But does poverty cause war, or does war cause poverty, or both?
    3. Selection Bias
      • The sample is not representative of the wider population.
      • E.g. conducting phone interviews for political polling will probably overestimate conservative support because old people use landlines and tend to vote conservative.

Experimental Designs

  • To measure the causal effect of an intervention, we need to isolate its effect.
  • In experimental settings, we can do this through randomization.
  • But what about non-experimental settings?

The Counterfactual Problem

  • The causal effect is the outcome with the treatment minus the outcome without it, for the same units
  • We only ever observe one of the two
  • A randomised experiment solves this: treated and control groups are alike on average
  • Without randomisation we need a design that builds a credible stand-in for the missing counterfactual:
    • Difference-in-Differences: a group that would have followed the same trend
    • Regression Discontinuity: units just the other side of a cutoff

Difference-in-Differences

Counterfactuals

  • Difference in differences requires a few things:
    1. A treatment located at a point in time
    2. Two distinct groups for which we have measurement pre-and post- treatment
    3. Parallel pre-treatment trends in the outcome variable y
    4. No simultaneous treatment occurring around our treatment of interest
  • These allow us to construct a valid counterfactual:
    • We can argue that the control group in the post-treatment period acts as a valid representation of the treatment group’s behaviour in the absence of treatment. We can thus interpret the difference between the two as the causal effect of the treatment.

Do Minimum Wages Decrease Poverty?

  • A bill signed into law on November 1989 raised the federal minimum wage from $3.35 per hour to $3.8 effective April 1, 1990, with a further increase from $4.25 per hour to $5.05 on April 1, 1992.
  • New Jersey experiences the wage increase but not in Pennsylvania.
  • David and Krueger run two rounds of survey right before and after the rise.

Why Not Just Compare Before and After?

  • We cannot draw causal conclusions by observing simple before-and-after changes in outcomes, as factors other than the treatment may influence the outcome over time.
    • E.g. New Jersey may have also implemented new social programmes, improved public transport, etc. which would also influence poverty.
  • We cannot simply compare NJ and PA directly due to differences in unobservable characteristics between the states.
    • E.g. geographic size, economic structure, population, governance, etc.

Difference-in-Differences

Compare the before-and-after change in the treated group with the change in the control group:

Yᵢₜ = β₀ + β₁ Postₜ + β₂ Treatᵢ + β₃ (Treatᵢ × Postₜ) + εᵢₜ

Control Treatment
Before β₀ β₀ + β₂
After β₀ + β₁ β₀ + β₁ + β₂ + β₃

β₃ is the difference-in-differences: the treatment effect.

Do Minimum Wages Decrease Poverty?

State Year Treat Post Poverty (%)
NJ 1989 1 0 1.5
NJ 1990 1 0 2.1
NJ 1991 1 0 2.7
NJ 1992 1 1 2.3
NJ 1993 1 1 2.9
NJ 1994 1 1 3.5
PA 1989 0 0 3.0
PA 1990 0 0 3.6
PA 1991 0 0 4.2
PA 1992 0 1 4.8
PA 1993 0 1 5.4
PA 1994 0 1 6.0

Reading Off the Effect

Mean poverty rate (%), before (1989–91) and after (1992–94):

PA (control) NJ (treated) NJ − PA
Before 3.6 = β₀ 2.1 = β₀+β₂ −1.5 = β₂
After 5.4 = β₀+β₁ 2.9 = β₀+β₁+β₂+β₃ −2.5 = β₂+β₃
After − Before 1.8 = β₁ 0.8 = β₁+β₃ −1.0 = β₃

The policy lowered poverty in NJ by 1 percentage point relative to the trend it would have followed.

Case Study: The Mariel Boatlift

Does immigration increase unemployment

  • Many argue that immigration is undesirable because low-skilled immigrants may displace low-skilled or less-educated US citizens in the labor market.
  • Anecdotal evidence for this claim includes newspaper accounts of hostility between immigrants and natives in some cities, but the empirical evidence is inconclusive.
  • Card’s (1990) study of the effect of immigration on the employment of American citizens, using a Difference in Differences design and the Mariel Boatlift.

§

Experimental Design

  • Data: Current Population Survey (CPS), same data we’ve been using in the workshops
  • Treatment Group: Miami
  • Control Group: Atlanta, Los Angeles, Houston, and Tampa-St. Petersburg. These cities were chosen because, like Miami, they have large Black and Hispanic populations and because discussions of the impact of immigrants often focuses on the consequences for minorities. Most importantly, these cities appear to have employment trends similar to those in Miami at least since 1976.
  • Treatment period: pre/post 1980

Results

Unemployment rates (%), standard errors in brackets:

1979 1981 1981 − 1979
Whites
Miami 5.1 (1.1) 3.9 (0.9) −1.2 (1.4)
Comparison cities 4.4 (0.3) 4.3 (0.3) −0.1 (0.4)
Miami − comparison 0.7 (1.1) −0.4 (0.95) −1.1 (1.5)
Blacks
Miami 8.3 (1.7) 9.6 (1.8) 1.3 (2.5)
Comparison cities 10.3 (0.8) 12.6 (0.9) 2.3 (1.2)
Miami − comparison −2.0 (1.9) −3.0 (2.0) −1.0 (2.8)

Source: Card (1990), Industrial and Labor Relations Review.

Findings

  • The Mariel immigrants increased the Miami labor force by 7%, and the percentage increase in labor supply to less-skilled occupations and industries was even greater because most of the immigrants were relatively unskilled.
  • The Mariel influx appears to have had virtually no effect on the wages or unemployment rates of less-skilled workers, even among Cubans who had immigrated earlier.
  • The author suggests that the ability of Miami’s labor market to rapidly absorb the Mariel immigrants was largely owing to its adjustment to other large waves of immigrants in the two decades before the Mariel Boatlift.

Regression Discontinuity

Counterfactuals

  • What if we didn’t have pre-treatment data for NJ and PA, but we had county level data on poverty for the period after the minimum wage was introduced.
  • We can’t do DiD, since we can’t show that NJ and PA had similar trends in poverty pre-treatment. Maybe poverty in NJ was already falling rapidly before they introduced the minimum wage, while it was increasing in PA.
  • We also can’t just compare all the counties in PA against the counties in NJ, since there are huge states many differences between them that have nothing to do with the minimum wage law.

Regression Discontinuity Design

  • Regression Discontinuity Design (RDD) is a quasi-experimental evaluation option that measures the impact of an intervention, or treatment, by applying a treatment assignment mechanism based on a cutoff point in a continuous eligibility index.
  • RDD estimates local average treatment effects around the cutoff point, where treatment and comparison units are most similar.

Source: World Bank

RDD Framework

  • Question: Do minimum wages increase unemployment?
  • Running variable:
    • State– NJ and PA are hugely different beyond the fact that one implemented a minimum wage policy and the other didn’t
  • Exogenous cutoff:
    • State border
  • Bandwidth:
    • If we compare areas in PA and NJ within a small distance of the border between these states, they are probably going to be very similar in terms of demographics, economic structure, etc.

Observed Outcomes

There appears to be a jump in the observed values of the outcome variable (earnings) around the cutoff (scholarship eligibility)

Potential Outcomes

We can use the discontinuity created by the treatment to estimate the effect of D on Y at the threshold

Case Study: Irrigation and Insurgency

Does irrigation reduce insurgent recruitment in Southeastern Turkey?

Kurdish Insurgency

  • 44% of the population in Southeast living on less than US$1.1/day
  • “The Kurdish identity question was expressed in terms of regional economic inequalities and suggested a socialist solution” (Yavuz, 2001: 10)
  • Originally a “peasant movement”, recruiting largely from farming communities (Yavuz, 2001: 10)

Southeastern Anatolia Project (GAP)

  • Infrastructural development project started in 1985
  • Goals:
    • 19 dams
    • 22 hydropower plants
    • 1.8 million hectares of irrigation
  • Income gains associated with switch to irrigated farming: 3-7x (Tokdemir et. al., 2016)
  • Government hoped it would reduce appeal of PKK

Interviews with Farmers

  • Farmers who received GAP irrigation:
    • “Our view of the state changed positively… we had hatred before, but now they started investing in the Southeast”
    • “We did not trust the state before, but it brought electricity, water, phone, etc. to us and now we trust the state a lot”
    • “At last the state turned its face towards us”
    • “We did not see any accomplishments of governments in the past—we are a little bit happy to see some now.” (Harris, 2016)
  • Farmer who did not receive irrigation:
    • “Why should I not support Öcalan?”

Intro

Recruitment

  1. Data Collection

RDD Framework

  • Question: Does irrigation reduce recruitment?
  • Endogenous variable:
    • Irrigation– a village in the mountains is very different from a village in the lowlands, in ways that probably affect PKK recruitment
  • Exogenous cutoff:
    • Dam elevation
  • Bandwidth:
    • If we compare just above and just below the altitude of a dam, they’re probably going to be pretty similar in terms of demographics, politics, economy.
    • We could even make a plausible argument that the main difference between them is the ability to access irrigation

Main Findings

  • Irrigation is negatively related to conflict incidence and recruitment.
  • Panel models indicate that a 27km2 increase in irrigated area leads to a 49% drop in the probability of conflict.
  • Cross-sectional models suggest that a fully irrigated 25km² area is 58% less likely than the average cell to experience a conflict event involving Kurdish rebels during the 2016-2019 period

Auditing a Causal Claim

Questions to ask of any DiD or RDD, including one an AI wrote for you:

  • What is the counterfactual, and why should I believe it?
  • DiD: were pre-treatment trends parallel? Does a placebo group or a fake treatment date show an “effect”? Did anything else change at the same time?
  • RDD: could people manipulate the running variable (heaping at the cutoff)? Do other characteristics jump at the cutoff? Does the estimate survive a different bandwidth or functional form?
  • Who does it apply to? DiD: the treated group. RDD: only units near the cutoff.

Any Questions?

o.ballinger@ucl.ac.uk