Statistics Question: Kernel Smoothing in R

Posted by James Thompson on Stack Overflow See other posts from Stack Overflow or by James Thompson
Published on 2010-06-11T18:18:24Z Indexed on 2010/06/11 18:23 UTC
Read the original article Hit count: 189

Filed under:
|

I have data of this form:

 x    y
 1    0.19
 2    0.26 
 3    0.40
 4    0.58
 5    0.59
 6    1.24
 7    0.68
 8    0.60
 9    1.12
10    0.80
11    1.20
12    1.17
13    0.39

I'm currently plotting a kernel-smoothed density estimate of the x versus y using this code:

   smoothed = ksmooth( d$resi, d$score, bandwidth = 6 )
   plot( smoothed )

I simply want a plot of the x versus smoothed(y) values, which is ## Heading ##

However, the documentation for ksmooth suggests that this isn't the best kernel-smoothing package available:

This function is implemented purely for compatibility with S, although it is nowhere near as slow as the S function. Better kernel smoothers are available in other packages.

What other kernel smoothers are better can these smoothers be found?

© Stack Overflow or respective owner

Related posts about r

    Related posts about statistics