Hi !
 
I try to compare some models obtained from glmmPQL.
 
model1 <-
glmmPQL(y~red*yellow+I(red^2)+I(yellow^2)+densite8+I(densite8^2)+freq8_4
+I(freq8_4^2), random=~1|num, binomial);
model2 <-
glmmPQL(y~red*yellow+I(red^2)+I(yellow^2)+densite8+I(densite8^2)+freq8_4
, random=~1|num, binomial);
anova(model1, model2)
 
here is the answer :
Erreur dans anova.lme(model1, model2) : Objects must inherit from
classes "gls", "gnls" "lm","lmList", "lme","nlme","nlsList", or "nls"
 
Yet, according to “?glmmPQL”, glmmPQL gives an object of class lme:
Value:
     A object of class '"lme"': see 'lmeObject'.
 
What should I do to be able to compare my models?
 
Thank you.
Emmanuelle 
 
 
Emmanuelle TASTARD
UMR 5174 'Evolution et Diversité Biologique'  
Université Paul Sabatier Bat 4R3
31062 TOULOUSE CEDEX 9 France
tel : 05 61 55 67 59
 

	[[alternative HTML version deleted]]


