[R] density estimate

Dieter Menne dieter.menne at menne-biomed.de
Sat Feb 21 08:52:30 CET 2009


Edna Bell <edna.bell01 <at> gmail.com> writes:

> I have a tiny data set:
> > xs
>  [1] 0.7 2.8 0.1 1.9 0.0 1.4 0.2 2.3 0.3 0.2
> >
> 
> and generate the density function for it.
> 
> I would like to replicate this.  Is there a straightforward way to do
> this, please?

See chapter 5 in MASS and the examples in library/MASS/scripts/ch05.R
 
> According to the help file, the FFT is used.

Too bad, I have 3500 help files in my installation.
 
> How does this compare to Silverman's version from his page 15 Equation
> 2.2a, please?

I checked Sarah Silverman's (http://en.wikipedia.org/wiki/Sarah_Silverman) 
Great Schlepp and could not find Equation 2.2a there.

Dieter




More information about the R-help mailing list