[R] Homework help: Is this how CIs of normal distributions are computed?

Daniel Lakeland dlakelan at street-artists.org
Wed Oct 31 21:04:07 CET 2007

On Wed, Oct 31, 2007 at 03:56:37PM -0400, Zembower, Kevin wrote:
> I'm looking for a function in R similar to t.test() which was generously
> pointed out to me yesterday, but which can be used for normally
> distributed data.
> > x100<-sample(x, 100, replace=TRUE)
> I think that I should be able to use a normal distribution, because of
> the n>30 rule-of-thumb.
> I can compute the 95% CI using:
> > mean(x100) - qnorm(alpha/2)*sd(x100)/sqrt(length(x100))

You can compute quantiles of the particular normal distribution itself
rather than transforming from the standardized normal by hand.


Daniel Lakeland
dlakelan at street-artists.org

More information about the R-help mailing list