Cattaneo-Jansson-Ma (2020) local-polynomial density test
Source:R/rdd.R
morie_rdd_cattaneo_density.RdCattaneo-Jansson-Ma (2020) local-polynomial density test
Arguments
- x
Numeric vector of running-variable values (used by bandwidth selectors + density tests that don't take a
data.frame).- cutoff
Numeric scalar; the threshold on
running. Default0(the canonical normalisation).- p
Integer; local-polynomial order (default 1 for local- linear). 2 picks up quadratic curvature for bias correction.
- kernel
One of
"triangular"(default),"epanechnikov","uniform", or"gaussian".- bandwidth
Numeric; the local-polynomial bandwidth on each side of the cutoff.
NULLinvokes the data-driven CCT selector.