[R] confidence interval of a average...
dunc_harris at hotmail.com
Thu Nov 25 00:05:32 CET 2004
Sorry if this was not clear. This is more of a theoreticla question rather
than a R-coding question. I need to calculate
"The predicted response and 95% prediction interval for a man of average
So I need to predict the average response, which is easily done by taking
the mean height and using the regression formula.
However, "average height" has to be calculated from the sample, and thus I
have confidence in that. Let's say the mean is 163cm, I think that I can't
take the 163cm value and calculate the CI from just the sd of the lung
capacity because that would be too narrow; I think covariance must come into
it somehow, or can I just do a 97.5% CI on the height and take those extreme
values and do a 97.% CI on them?
>From: "Robert W. Baer, Ph.D." <rbaer at atsu.edu>
>To: "Duncan Harris" <dunc_harris at hotmail.com>
>Subject: Re: [R] confidence interval of a average...
>Date: Wed, 24 Nov 2004 16:25:53 -0600
>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