View source: R/kernel.g.density.R
kernel.g.density | R Documentation |
Estimates the density function using the Gaussian kernel
kernel.g.density(data, points, h)
data |
vector of observations |
points |
in which the function is evaluated |
h |
bandwidth |
density estimation
x = rnorm(100,1,2)
gridd = seq(-5,5,length.out=1000)
h = (4/3)^(1/5)*sd(x)*length(x)^(-1/5)
kernel.g.density (x,gridd,h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.