K.epa: Epanechnikov Kernel

Description Usage Arguments Value Author(s) References See Also Examples

Description

Evaluation of the Epanechnikov kernel function

Usage

1
K.epa(u)

Arguments

u

A vector (or scalar) with the evaluation point(s).

Value

The value of the kernel function at u.

Author(s)

Gamiz, M.L., Mammen, E., Martinez-Miranda, M.D. and Nielsen, J.P.

References

Gamiz, M.L., Mammen, E., Martinez-Miranda, M.D. and Nielsen, J.P.(2016). Double one-sided cross-validation of local linear hazards. Journal of the Royal Statistical Society B, 78, 755-779.

See Also

K.sextic

Examples

1
2
3
4
curve(K.epa,-1.5,1.5,main="Epanechnikov kernel",ylab="K(u)",xlab="u")
# The left onesided 
K.epa.left<-function(u) return(2*K.epa(u)*(u<0))
curve(K.epa.left,-1.5,1.5,main="Left onesided Epanechnikov kernel",ylab="K(u)",xlab="u")

DOvalidation documentation built on May 2, 2019, 10:16 a.m.