rdbwselect
implements bandwidth selectors for local polynomial Regression Discontinuity (RD) point estimators and inference procedures developed in Calonico, Cattaneo and Titiunik (2014a), Calonico, Cattaneo and Farrell (2016a), and Calonico, Cattaneo, Farrell and Titiunik (2016).
Companion commands are: rdrobust
for point estimation and inference procedures, 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 rdbwselect(y, x, covs = NULL, fuzzy = NULL, cluster = NULL,
c = 0, p = 1, q = 2, deriv = 0,
kernel = "tri", bwselect = "mserd", scaleregul = 1, sharpbw = FALSE,
vce = "nn", nnmatch = 3, all = FALSE, subset = NULL)
rdrobust
, rdplot
x<-runif(1000,-1,1)
y<-5+3*x+2*(x>=0)+rnorm(1000)
rdbwselect(y,x)
Run the code above in your browser using DataLab