Re: [R] CI with sd

From: Chuck Cleland <ccleland_at_optonline.net>
Date: Thu 19 Oct 2006 - 16:35:48 GMT

Ethan Johnsons wrote:
> Please let me ask you another quick question.
> I have results for e coli, and am trying to get 95% CI with the sd (1.783956).
> I got the result from another tool as (1.21, 3.42).
> But, I like to verify it with R. What function do you use for this?
>

>> e.coli=c(27.5,24.6,25.3,28.7,23,26.8,24.7,24.3,24.9)
>> sd(e.coli, na.rm = FALSE)

> [1] 1.783956
>
> Sorry for the newbie question.

e.coli <- c(27.5,24.6,25.3,28.7,23,26.8,24.7,24.3,24.9) library(nlme)
mod1 <- gls(e.coli ~ 1)
intervals(mod1)

Approximate 95% confidence intervals

 Coefficients:

               lower est. upper
(Intercept) 24.16206 25.53333 26.90460
attr(,"label")
[1] "Coefficients:"

 Residual standard error:
   lower est. upper
1.204986 1.783956 3.417651

> thx much
>
> ej
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri Oct 20 02:57:15 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 20 Oct 2006 - 02:30:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.