[R] confidence interval of a average...
Robert W. Baer, Ph.D.
rbaer at atsu.edu
Wed Nov 24 23:56:00 CET 2004
It depends on whether you want to do 95% ocnfidence intervals on the
predicition or the mean vital capacity. Try the following and see if it
gets you started:
# Do regression
# Confidence interval on mean vc
#confidence interval on prediced vc
> Fom: "Duncan Harris" <dunc_harris at hotmail.com>
> > I have a sample of lung capacities from a population measured against
> > height. I need to know the 95% CI of the lung capacity of a person of
> > average height.
> > I have fitted a regression line.
> > How do I get a minimum and maximum values of the 95% CI?
> > My thinking was that this has something to do with covariance, but how?
> > My other thinking was that I could derive the 0.975 (sqrt 0.95) CI for
> > height. Then I could take the lower height 0.975 CI value and calculate
> > from that the lower 0.975 value from the lung capacity. And then do the
> > for the taller people. That is bound to be wrong though.
> > Dunc
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
More information about the R-help