akde | R Documentation |
An adaptive kernel density estimator using R.
akde(x, h, kernel = "gaussian")
x |
the data from which the estimate is to be computed. |
h |
the bandwidth function to be used. |
kernel |
a character string giving the smoothing kernel to be used, with default "gaussian". |
x data points - same as input.
kernel name of kernel to use.
hx the bandwidth function - same as input.
h the bandwidth value at x to use.
fhat the estimated density function.
## Not run: x<-rnorm(2000) h<-function(u){(10+u^4)^(-0.6)} fhat<-akde(x,h,kernel="gaussian") plot(x,fhat$fhat(x),cex=0.5) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.