The rdlocrand package provides Python, R and Stata implementations of statistical inference and graphical procedures for Regression Discontinuity designs employing local randomization methods. It provides point estimators, confidence intervals estimators, binomial manipulation testing, windows selectors, automatic plots, sensitivity analysis, and other related features.

This work was supported in part by the National Science Foundation through grants SES-1357561.

Queries and Requests

Please email: rdpackages@googlegroups.com

Major Upgrades

This package was first released in Spring 2016, and had one major upgrade in Spring 2021.

Python Implementation

To install/update in R type:

pip install rdlocrand

R Implementation

To install/update in R type:


Stata Implementation

To install/update in Stata type:

net install rdlocrand, from(https://raw.githubusercontent.com/rdpackages/rdlocrand/master/stata) replace


For source code and related files, visit rdlocrand repository.


For overviews and introductions, see rdpackages website.

Software and Implementation

Technical and Methodological