Re: [R] Sum of Squares in a lme model

2004-05-22 Thread Federico Calboli
On Sat, 2004-05-22 at 03:58, Deepayan Sarkar wrote: 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 ? Make a oh

Re: [R] Sum of Squares in a lme model

2004-05-22 Thread Federico Calboli
On Sat, 2004-05-22 at 13:08, Renaud Lancelot wrote: So you might want to use the anova method for lme objects. You probably need to set the argument type to marginal, which is not the default value. Best, Renaud Using anova(my.lme.model), of any type, does not produce the desired MS

[R] Sum of Squares in a lme model

2004-05-21 Thread Federico Calboli
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

Re: [R] Sum of Squares in a lme model

2004-05-21 Thread Deepayan Sarkar
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