rdrobust
implements local polynomial Regression Discontinuity (RD) point estimators with robust bias-corrected confidence intervals and inference procedures developed in Calonico, Cattaneo and Titiunik (2014a), Calonico, Cattaneo and Farrell (2016a), and Calonico, Cattaneo, Farrell and Titiunik (2016). It also computes alternative estimation and inference procedures available in the literature.
Companion commands are: rdbwselect
for data-driven bandwidth selection, and rdplot
for data-driven RD plots (see
Calonico, Cattaneo and Titiunik (2015a) for details).
A detailed introduction to this command is given in Calonico, Cattaneo and Titiunik (2015b), and Calonico, Cattaneo, Farrell and Titiunik (2016b). A companion Stata
package is described in Calonico, Cattaneo and Titiunik (2014b).
For more details, and related Stata and R packages useful for analysis of RD designs, visit rdrobust(y, x, covs = NULL, fuzzy = NULL, cluster = NULL,
c = 0, p = 1, q = 2, deriv = 0,
h = NULL, b = NULL, rho = NULL, scalepar = 1,
kernel = "tri", bwselect = "mserd", scaleregul = 1, sharpbw = FALSE,
vce = "nn", nnmatch = 3, level = 95, all = FALSE, subset = NULL)
rdbwselect
, rdplot
x<-runif(1000,-1,1)
y<-5+3*x+2*(x>=0)+rnorm(1000)
rdrobust(y,x)
Run the code above in your browser using DataLab