McCrary (2008) density manipulation 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).- n_bins
Integer; bin count for histogram-based density tests and binned-plot reductions.
- bandwidth
Numeric; the local-polynomial bandwidth on each side of the cutoff.
NULLinvokes the data-driven CCT selector.