[R] Sum of Squares in a lme model

Deepayan Sarkar deepayan at stat.wisc.edu
Sat May 22 04:58:52 CEST 2004


On Friday 21 May 2004 09:41, Federico Calboli wrote:
> Dear All,
>
> I would like to ask how to get the Sum of Squares from fitted lme
> model. I appreciate that lme maximises the likelihood (or REML) and
> uses likelihood ratio tests, but I just fail why I could not get the
> SS if I want them. I could use lm to calculate them, but it looks
> quite pointless to fit a second (and wrong in a way) model for
> something so trivial.

Exactly what do you wish to square and sum ? If it's the 'errors' (which 
in this context is ambiguous), extract them (see ?residuals.lme), 
square them and sum them. But what are you planning to do with this 
after you get it ?

Deepayan




More information about the R-help mailing list