Learn R Programming

DOvalidation (version 1.1.0)

K.epa: Epanechnikov Kernel

Description

Evaluation of the Epanechnikov kernel function

Usage

K.epa(u)

Arguments

u

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

Value

The value of the kernel function at u.

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

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab