setkernel {spatialkernel} | R Documentation |
Select a kernel function for kernel regression and kernel smoothing.
setkernel(kernel = NULL)
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. |
A character string of the kernel function selected, or the kernel function
currently being used when kernel
is NULL
.
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.
## Not run: setkernel("e") ## Select "epanechnikov" kernel setkernel() ## show the kernel currrently being used ## End(Not run)