setkernel: Select Smoothing Kernel Function

Description Usage Arguments Value Note See Also Examples

Description

Select a kernel function for kernel regression and kernel smoothing.

Usage

1

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

cvloglk, phat and lambdahat

Examples

1
2
3
4
5
## Not run: 
  setkernel("e") ## Select "epanechnikov" kernel
  setkernel()    ## show the kernel currrently being used

## End(Not run)

spatialkernel documentation built on May 2, 2019, 4:37 p.m.