setkernel
Select Smoothing Kernel Function
Select a kernel function for kernel regression and kernel smoothing.
- Keywords
- distribution, smooth
Usage
setkernel(kernel = NULL)
Arguments
- kernel
character string giving the smoothing kernel to be used. This must be one of gaussian, epanechnikov, quadratic, quartic, or
NULL
, and may be abbreviated to a unique prefix.
Value
A character string of the kernel function selected, or the kernel
function currently being used when kernel
is NULL
.
Note
The default kernel used is Gaussian. Unless users want to use a
non-default kernel, there is no need to call setkernel
.
quadratic is an alias for epanechnikov.
setkernel
setup kernel function for both kernel regression in the
type-specific probability estimation and the kernel smoothing in the
intensity function estimation.
See Also
Examples
# NOT RUN {
setkernel("e") ## Select "epanechnikov" kernel
setkernel() ## show the kernel currrently being used
# }
Community examples
Looks like there are no examples yet.