This function implements an interface to the kernel density estimation functions provided by the KernSmooth package.
binned.kernel.est(
data,
kernel = "normal",
bandwidth = NULL,
canonical = FALSE,
scalest = "minim",
level = 2L,
gridsize = 401L,
range.data = range(data),
truncate = TRUE
)
a numeric vector containing the sample on which the kernel density estimate is to be constructed.
character string specifying the smoothing kernel
the kernel bandwidth smoothing parameter.
a logical value indicating whether canonically scaled kernels should be used
estimate of scale.
"stdev"
- standard deviation is used.
"iqr"
- inter-quartile range divided by 1.349 is used.
"minim"
- minimum of "stdev"
and "iqr"
is used.
number of levels of functional estimation used in the plug-in rule.
the number of equally-spaced points over which binning is performed to obtain kernel functional approximation.
vector containing the minimum and maximum values of data
at which to compute the estimate. The default is the minimum and maximum data values.
logical value indicating whether data with x values outside the range specified by range.data
should be ignored.
Matt Wand (2015). KernSmooth: Functions for Kernel Smoothing Supporting Wand & Jones (1995). R package version 2.23-14.
Henry Deng and Hadley Wickham (2011). Density estimation in R. http://vita.had.co.nz/papers/density-estimation.pdf.