Kern.FUN <-
function(zz,zi,bw,kern0="gauss"){
out = (VTM(zz,length(zi))- zi)/bw
switch(kern0,
"epan"= 0.75*(1-out^2)*(abs(out)<=1)/bw,
"gauss"= dnorm(out)/bw
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.