Skip to contents

Cattaneo-Jansson-Ma (2020) local-polynomial density test

Usage

morie_rdd_cattaneo_density(
  x,
  cutoff = 0,
  p = 2,
  kernel = "triangular",
  bandwidth = NULL
)

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. Default 0 (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. NULL invokes the data-driven CCT selector.