Nothing
kernels <- function(xi, x = 0, h = 1, weight=2){
kweights <- 1/h * switch(weight,
"1" = ifelse(abs(xi-x) <= h, 1-abs(x),0), # Triangular
"2" = ifelse(abs(xi-x) <= h, 3/4*(1- ((xi-x)/h)^2),0), # Epanechnikov
"3" = dnorm((x - xi)/h), # Gaussian
"4" = ifelse(abs(xi-x) <= h, 15/16*(1- ((xi-x)/h)^2)^2,0), # Biweight
"5" = ifelse(abs(xi-x) <= h, 1/2,0), # Uniform
)
kweights
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.