Learn R Programming

sBF (version 1.1.1)

K:

Kernel weighting function

Description

Instrumental to the sBF function. It returns weights used in the Nadaraya-Watson estimator.

Usage

K(u, method = "gaussian")

Arguments

u

distance from the origin.

method

type of kernel function. The default value is gaussian, other possible methods are: unifrom, epanechnikov, biweight, and triweight.

Details

The domain of the kernel functions is centered at the origin and generally the weight value returned by the kernel decreases while the distance u from the origin increases.

References

Silverman, B. W. (1986) Density Estimation. London: Chapman and Hall.

See Also

sBF-package, sBF.