[R] smoothing line and a pair of confidence intervals

Ben Bolker ben at zoo.ufl.edu
Mon Dec 17 23:46:44 CET 2001


help.search("loess")

points you to the loess() and predict.loess() functions in the modreg
library.  You'll have to first do

library(modreg)

to get access to these functions.  Then see the help pages

?loess
?predict.loess

which among other things says that predict.loess() can be asked for
standard errors.
  To plot points and add lines to a graph, see

?plot
?lines

  I think this is the second time you've sent this message to the list --
just a polite reminder that the folks on the list are helping out
completely out of some sense of public spirit and have no real obligation
to answer questions quickly (or at all, for that matter) ...

  cheers,
    Ben Bolker


On Mon, 17 Dec 2001, Zhu, Yi wrote:

>
> Hello R Users,
>
> I am very new to R and would like to do something quick if possible,
> please help!
>
> Suppose I have a data set of y versus x, how can I generate a
> smoothing line of y versus x (for example, using loess) and at the
> same time, generate a pair of confidence intervals for the smoothing
> or mean plus/minus standard deviation?
>
> Best regards,
>
> Yi Zhu
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
318 Carr Hall                                bolker at zoo.ufl.edu
Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
Box 118525                                   (ph)  352-392-5697
Gainesville, FL 32611-8525                   (fax) 352-392-3704

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list