
MSE-optimal RD bandwidth (Calonico, Cattaneo and Farrell 2020)
Source:R/rdd.R
morie_rdd_bandwidth_cct.RdThe common MSE-optimal bandwidths of rdrobust::rdbwselect(bwselect
= "mserd"): h for the order-p estimate of the deriv-th derivative
jump (fuzzy with treatment) and, in details, b_mse
for its bias correction and the CER-optimal h_cer =
h N^(-p/((3+p)(3+2p))).
Usage
morie_rdd_bandwidth_cct(
x,
y,
cutoff = 0,
kernel = "triangular",
p = 1,
deriv = 0,
treatment = NULL,
vce = "nn"
)Arguments
- x, y
The running variable and the outcome.
- cutoff
The threshold.
- kernel
One of
"triangular","epanechnikov","uniform".- p
Polynomial order for the local fit.
- deriv
Derivative of the regression function (1 for a kink).
- treatment
Optional treatment received, for fuzzy designs.
- vce
"nn"(default) or"hc0"-"hc3".