Re: [R] confidence interval as shaded band (lme)

2011-08-08 Thread Bert Gunter
Would someone tell me how they propose to go from "standard errors" to confidence intervals*. I suspect Doug Bates would probably like to know, also, as he has expended a lot of effort on this over the years, I believe. :-) -- Bert * Note +/- 2 std errors is almost certainly not the right answ

Re: [R] confidence interval as shaded band (lme)

2011-08-08 Thread Dennis Murphy
Hi: On Mon, Aug 8, 2011 at 10:07 AM, bjmjarrett wrote: > Hi all, > > I’m trying to plot confidence intervals for the fitted values I get with my > lme model in R. Which fitted values? The ones conditional on the random effects or the ones averaged over the random effects? The standard errors of

Re: [R] confidence interval as shaded band (lme)

2011-08-08 Thread R. Michael Weylandt
I don't know lme models very well, but if you have standard errors for your values, this shouldn't be too hard (as a last resort) using polygon() For example x = 1:10 y = x^2 y.Err = 2*x y.Up = y + y.Err; y.Dn =y-y.Err # This graph is actually quite ugly so don't copy the formatting plot(x,y

[R] confidence interval as shaded band (lme)

2011-08-08 Thread bjmjarrett
Hi all, I’m trying to plot confidence intervals for the fitted values I get with my lme model in R. Is there any way I can plot this in the form of a shaded band, like the output of geom_smooth() in ggplot2 package. ggplot2 seems to use only lm, glm, gam, loess and rlm as smoothing methods. Any