rdbwselect
implements bandwidth selection procedures for local-polynomial RD estimators proposed in Calonico, Cattaneo and Titiunik (2014a). It also computes bandwith selection procedures proposed in Ludwig and Miller (2007) and Imbens and Kalyanaraman (2012).
Calonico, Cattaneo and Titiunik (2015b) provides an introduction to this command. Additional details for conventional approaches to conduct inference in the RD design can be found in Imbens and Lemieux (2008), Lee and Lemieux (2010), and references therein.
For data-driven RD plots use the command rdplot
, which implements the results in Calonico, Cattaneo and Titiunik (2015a).
A companion Stata
package is described in Calonico, Cattaneo and Titiunik (2014b).rdbwselect(y, x, subset = NULL, c = 0, p = 1, q = 2, deriv = 0,
rho = NULL, kernel = "tri", bwselect = "CCT", scaleregul = 1,
delta = 0.5, cvgrid_min = NULL, cvgrid_max = NULL,
cvgrid_length = NULL, cvplot = FALSE, vce = "nn", matches = 3,
all = FALSE, precalc = TRUE )
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