image thumbnail


version 1.0.1 (3.75 KB) by Jorma Schäublin
Test for discontinuity in distributions


Updated 9 Dec 2020

View License

Function calculates test for discontinuity in the distribution of R at cutoff c. The test follows McCrary (2008). This function takes use of the kernelfunc function (Schäublin, 2020).

--- References ---
McCrary, Justin (2008). Manipulation of the running variable in the regression discontinuity design: A density test. Journal of econometrics, 142(2), 698-714.

Jorma Schäublin (2020). kernelfunc (, MATLAB Central File Exchange. Retrieved May 8, 2020.

Cite As

Jorma Schäublin (2022). mccrary (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: kernelfunc

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!