[R] confidence interval

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Oct 22 15:42:12 CEST 2004


lu kan wrote:

> I used a dataset to fit a linear model. For each new sample, a precition can be obtained using the fitted model. Now I wonder is there any way to calculate the confidence interval of the precition for new samples? Any suggestion or pointing to a reference would be very appreciated.
>  
> Lu

You already found predict(), so read ?predict.lm carefully and find that 
there is a argument "interval".

Uwe Ligges




More information about the R-help mailing list