[R] smoothing line and a pair of confidence intervals
Roger Peng
rpeng at stat.ucla.edu
Tue Dec 18 01:07:26 CET 2001
Also, the sm library has a nice function for doing a kernel smooth:
sm.regression(x, y, h = <bandwidth>, display="se")
does three things: plot the points, draw the smooth line, draw the
confidence intervals (dotted lines). You supply the bandwidth, of course.
-roger
_______________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu
http://www.stat.ucla.edu/~rpeng
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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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