You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). mccrary (https://www.mathworks.com/matlabcentral/fileexchange/75424-mccrary), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: kernelfunc
General Information
- Version 1.0.1 (3.75 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
