Skip to contents

Partially Linear Regression Discontinuity Inference, as proposed by Ghosh, Imbens and Wager (2025).

The development version of this package can be installed using devtools:

devtools::install_github("ghoshadi/plrd")

Replication files for Ghosh, Imbens and Wager (2025) are available in the directory Experiments.

Example usage:

library(plrd)
# Simple example of regression discontinuity design
set.seed(42)
n = 1000; threshold = 0
X = runif(n, -1, 1)
W = as.numeric(X >= threshold)
Y = (1 + 2*W)*(1 + X^2) + 1 / (1 + exp(X)) + rnorm(n, sd = .5)
out = plrd(Y, X, threshold)
print(out)
plot(out)

References

Aditya Ghosh, Guido Imbens and Stefan Wager. PLRD : Partially Linear Regression Discontinuity Inference., arXiv preprint arXiv:2503.09907.

Funding

Development of this software was supported by the National Science Foundation under grant number SES-2242876.