[R] Residuals in gls

From: Panos Hadjinicolaou <Panos.Hadjinicolaou_at_atm.ch.cam.ac.uk>
Date: Sat 16 Apr 2005 - 03:50:00 EST

Dear R-helpers,

I am doing a multiple linear regression of an ozone time-series on time and other explanatory variables. I have been using the "lm" model but I am recently experimenting with "gls".

With the "lm" model I was able to look at the residuals by $res in the "summary
(lm(...))" and then check with "acf" for autocorrelation in these residuals
which had the same "length" with the original time-series.

A similar action in "gls" would return only 5 values for residuals
(Min,Q1,Med,Q3,Max). So I am estimating the residuals for the predicted
time-series by subtracting $fitted from my original time-series. I would like to ask if this a correct thing to do.

Thanks for reading,


Dr Panos Hadjinicolaou

Centre for Atmospheric Science, Dept. of Chemistry University of Cambridge
Lensfield Road
Cambridge CB2 1EW, UK

Work: +44 1223 763815
Home: +44 1223 327417

Fax: +44 1223 763823

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Apr 16 04:05:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:12 EST