K.epa {DOvalidation} | R Documentation |
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
.
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
Examples
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")
[Package DOvalidation version 1.1.0 Index]