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 (https://www.mathworks.com/matlabcentral/fileexchange/75320-kernelfunc), MATLAB Central File Exchange. Retrieved May 8, 2020.
Cite As
Jorma Schäublin (2024). mccrary (https://www.mathworks.com/matlabcentral/fileexchange/75424-mccrary), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: kernelfunc
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.