spatialkernel (version 0.4-23)

setkernel: Select Smoothing Kernel Function

Description

Select a kernel function for kernel regression and kernel smoothing.

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.

See Also

cvloglk, phat and lambdahat

Examples

Run this code
# NOT RUN {
  setkernel("e") ## Select "epanechnikov" kernel
  setkernel()    ## show the kernel currrently being used
# }

Run the code above in your browser using DataCamp Workspace