[R] anova(lme object)
Mahbub Latif
ahmlatif at yahoo.com
Thu Aug 21 18:51:17 CEST 2003
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?
More information about the R-help
mailing list