[R] variances of values predicted using a lm object

Rajarshi Guha rxg218 at psu.edu
Thu Feb 12 21:06:57 CET 2004


On Thu, 2004-02-12 at 14:50, Sundar Dorai-Raj wrote:
> Rajarshi Guha wrote:
> > Hi,
> >   is there a function in R that will give me the variances of a
> > predicted values obtained using predict.lm().

>  From ?predict.lm:
> 
> <quote>
> Details:
> 
>       'predict.lm' produces predicted values, obtained by evaluating the
>       regression function in the frame 'newdata' (which defaults to
>       'model.frame(object)'.  If the logical 'se.fit' is 'TRUE',
>       standard errors of the predictions are calculated.
> </quote>
> 
> Is this what you need?

Oops. Yes, thank you.

-------------------------------------------------------------------
Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
667:
The neighbor of the beast.




More information about the R-help mailing list