Native implementation of the Imbens & Kalyanaraman (2012) three-step plug-in rule: pilot density and conditional variance at the cutoff, one-sided curvature estimates, and the regularized MSE-optimal bandwidth with the kernel constant.
Arguments
- x
Numeric vector of running-variable values (used by bandwidth selectors + density tests that don't take a
data.frame).- y
Numeric vector of outcome values aligned with
x.- cutoff
Numeric scalar; the threshold on
running. Default0(the canonical normalisation).- kernel
One of
"triangular"(default),"epanechnikov","uniform", or"gaussian".
