Blog
Policy & causal

Regression discontinuity (RDD)

Read the jump just above and below a threshold as the effect — cutoff, bandwidth and density test included.

Skari team7 min

An online shop gives "premium member" status to anyone who spends over 500,000 won (about 350 US dollars) a year. To see what the status does, you open the data and find this.

"Premium members visited 12.4 times a year, regular members 7.4!"

But premium members were big spenders to begin with. They would have visited more often even without the status, so treating the whole 5-visit gap as the effect of the status inflates it badly.

When treatment is decided by a cut-off score like this, the method to use is regression discontinuity (RDD). Today we look at what RDD is and how to read its results.

What regression discontinuity is

When anyone whose score passes a threshold (the cutoff) gets the treatment, regression discontinuity compares units just below the cutoff with units just above it. It is also called a regression discontinuity design.

A customer who spent 490,000 won a year and one who spent 510,000 won are practically the same kind of person — yet only one becomes a premium member. So if the outcome jumps sharply at the cutoff, the height of that jump is read as the effect of the status. It is almost as if customers had been split at random.

Today's example

  • Participants — 2,400 customers of an online shop (simulated data)
  • Running variable — annual spending (in 10,000 won)
  • Cutoff — premium status from 500,000 won
  • Outcome — number of visits the following year

Terms to know first

  • Running variable — the score that decides treatment (annual spending)
  • Cutoff — the value where treatment switches (500,000 won)
  • Bandwidth — how far from the cutoff customers are still used in the comparison
  • Kernel — how much more weight customers close to the cutoff get

Choosing the bandwidth

A narrow bandwidth compares truly similar customers but leaves fewer of them. A wide one adds sample size but mixes in less similar customers far from the cutoff.

So the usual practice is to start from an optimal bandwidth computed from the data, then check robustness: do the results hold when the bandwidth is halved or doubled?

The lines on each side of the cutoff are usually best fitted as first order (linear). Raise the order too far and the ends bend, which easily exaggerates the jump.

Sharp and fuzzy RDD

  • Sharp RDD — everyone above the threshold gets the treatment
  • Fuzzy RDD — only the share treated jumps, for example when people above the threshold must still apply

In today's example the status changes automatically at 500,000 won, so it is a sharp RDD.

What to check

  • Manipulation (sorting) — if many customers knew the rule and spent just enough to hit 500,000 won, people pile up right above the cutoff → density test
  • Covariate balance — variables fixed before treatment, like membership length, should not jump at the cutoff
  • Bandwidth robustness — results stay similar when the bandwidth changes
  • The plot — binned means show the jump to the eye as well

Reading the results

MeasureValue
RDD estimate+2.68 visits · 95% CI [1.64, 3.72]
Bandwidth±146,000 won (1,142 customers inside)
Bandwidth robustnesssignificant from half to double (2.63–2.94 visits)
Density testp = .535 (no pile-up)

Read it as: getting premium status raised next-year visits by about 2.7.

Note that this is the effect for customers around 500,000 won. It is hard to say it would be the same for someone spending 2 million won a year.

How to write it up

The effect of premium membership, granted at annual spending of 500,000 won, on visits in the following year was analysed with a sharp regression discontinuity design (local linear, triangular kernel, bandwidth ±146,000 won, n = 1,142). At the cutoff, visits were 2.68 higher (SE = 0.53, 95% CI [1.64, 3.72]), t = 5.06, p < .001. The estimate remained significant at 2.63–2.94 when the bandwidth was varied from half to double, and the density test at the cutoff showed no evidence of manipulation (T = −0.62, p = .535).

Example sentence · the numbers are made up

In Skari

In Skari Statistics, load your data, switch the analysis list to By field and open Economics · policy → Policy effects (causal) to find Regression Discontinuity (RDD). (Under By method, it is in Econometrics → Causal Inference.)

At the variables step you choose the outcome (Y) and the running variable (X), and if needed add covariates for the balance check and the treatment actually received for a fuzzy RDD.

At the settings step you enter the cutoff value; leave the bandwidth empty and it is calculated automatically. You can also choose the polynomial order (linear or quadratic) and the kernel (uniform, triangular or Epanechnikov).

Setting the cutoff, bandwidth, polynomial order and kernel — opened on public data from close US House elections (running variable: Democratic vote share, cutoff 0.5)
Setting the cutoff, bandwidth, polynomial order and kernel — opened on public data from close US House elections (running variable: Democratic vote share, cutoff 0.5)

Try regression discontinuity on your data

Opens Statistics at By field → Economics · policy → Policy effects (causal)

Open RDD

Run the analysis and the results come together as a report. The jump at the cutoff with its confidence interval, the sample inside the bandwidth and the bandwidth robustness sit at the top.

Top of the report — example result (13,577 elections, outcome: the legislator's ADA score)
Top of the report — example result (13,577 elections, outcome: the legislator's ADA score)

A plot of binned means with the fitted lines on each side lets you see the jump for yourself.

Binned means and local fits on each side of the cutoff — same example
Binned means and local fits on each side of the cutoff — same example

Estimates re-run at several bandwidths and a density test at the cutoff are tabled too, so you can check right away how robust the result is. If you added covariates, their balance at the cutoff is shown as well.

Estimates and intervals re-computed across bandwidths — same example
Estimates and intervals re-computed across bandwidths — same example

In the Bandwidth explorer you can change the bandwidth and polynomial order yourself to see whether the jump holds, and the report downloads as Word, PDF or Excel.

Wrapping up

The heart of regression discontinuity is comparing just above and just below the threshold and reading the jump between them as the effect. Check that the result survives a change of bandwidth and that people do not pile up at the cutoff, and you can say "the status brought more visits" with far more confidence.

Want the theory behind it?The Academy's regression discontinuity chapter covers bandwidths, local linear regression and manipulation checks in depth →

Keep reading

Every feature free through Dec 31, 2026

Run the analyses from these posts on your own data