Kernel Functions
Some common-used kernel functions.
kernfun(type)
type |
A |
The corresponding kernel function.
x <- seq(-2, 2, 0.01) par(mfrow = c(2,2)) plot(x, kernfun("epan")(x), type = "l", main = "Epanechnikov") plot(x, kernfun("unif")(x), type = "l", main = "Uniform") plot(x, kernfun("quar")(x), type = "l", main = "Quartic") plot(x, kernfun("gauss")(x), type = "l", main = "Gaussian") par(mfrow = c(1,1))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.