[R] anova(lme object)

Mahbub Latif
Thu, 21 Aug 2003 16:51:17 -0000

Hi,

I use lme to fit models like

R> res1 <- lme(y~A+B, data=mydata, random=~1|subject)
R> res2 <- lme(y~B+A, data=mydata, random=~1|subject)

(only difference between these two models are the
sequence in which the indep variables are written in
formula)

where y is continuous and A, B, and subject are
factors. To get ANOVA table I used

R> anova(res1)
R> anova(res2)

and found ANOVA tables corresponding to these two
models are different. Is there any way I can get
similar ANOVA tables from lme objects of this type?