[R] Density Estimation
Pedro Ramirez
pramirez379 at hotmail.com
Wed Jun 7 19:00:08 CEST 2006
Dear R-list,
I have made a simple kernel density estimation by
x <- c(2,1,3,2,3,0,4,5,10,11,12,11,10)
kde <- density(x,n=100)
Now I would like to know the estimated probability that a
new observation falls into the interval 0<x<3.
How can I integrate over the corresponding interval?
In several R-packages for kernel density estimation I did
not found a corresponding function. I could apply
Simpson's Rule for integrating, but perhaps somebody
knows a better solution.
Thanks a lot for help!
Pedro
_________
More information about the R-help
mailing list