Skip to content

Methods · Causal inference · Regression discontinuity

McCrary Density Manipulation Test

The McCrary test checks whether the density of the running variable jumps at the cutoff of a regression discontinuity design by estimating the density on each side with local linear smoothing of a fine histogram and testing the log difference.

맥크래리 검정은 회귀불연속 설계에서 배정 변수의 밀도가 기준값에서 뛰는지 보기 위해, 촘촘한 히스토그램을 양쪽에서 국소 선형으로 평활해 밀도를 추정하고 그 로그 차이를 검정합니다.

Could people have manipulated their scores to land just above the eligibility threshold in my regression discontinuity study?

회귀불연속 연구에서 사람들이 자격 기준을 넘기려고 점수를 조작했을 가능성을 어떻게 확인하나요?

If units sort themselves across the cutoff, the density of the running variable shows a jump there. The McCrary test estimates the densities just below and above the cutoff and tests whether their log ratio differs from zero; a significant positive value suggests bunching above the threshold.

When to use McCrary Density Manipulation Test

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The McCrary density test at the cutoff [value] (bin width [value], bandwidth [value]) estimated theta = [value] (SE = [value]), z = [value], p = [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with NumPy, statsmodels and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-8.

    독립 계산. NumPy·statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-8).

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run McCrary Density Manipulation Test on Quorant

Data you need
a table (CSV or Excel) with running and cutoff
Price
250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q81059 · Reviewed 2026-10-25