Discrete variables are convoluted with the uniform distribution (see, Nagler,
2017). If a variable should be treated as discrete, declare it as
ordered()
.
kde1d(x, mult = 1, xmin = -Inf, xmax = Inf, bw = NULL, bw_min = 0, ...)
vector of length \(n\).
numeric; the actual bandwidth used is \(bw*mult\).
lower bound for the support of the density.
upper bound for the support of the density.
bandwidth parameter; has to be a positive number or NULL
;
the latter calls KernSmooth::dpik()
.
minimum value for the bandwidth.
unused.
An object of class kde1d
.
If xmin
or xmax
are finite, the density estimate will
be 0 outside of \([xmin, xmax]\). Mirror-reflection is used to correct
for boundary bias. Discrete variables are convoluted with the uniform
distribution (see, Nagler, 2017).
Nagler, T. (2017). A generic approach to nonparametric function estimation with mixed data. arXiv:1704.07457