Displaying 4 results from an estimated 4 matches for "stereotypy".
2004 Nov 26
1
help with glmmPQL
...fm2)
Error in anova.lme(fm1, fm2) : Objects must inherit from classes "gls",
"gnls" "lm","lmList", "lme","nlme","nlsList", or "nls"
>
The two equations I estimated are these:
> fm1 <- glmmPQL(choice ~ day + stereotypy,
+ random = ~ 1 | bear, data = learning, family = binomial)
> fm2 <- glmmPQL(choice ~ day + envir + stereotypy,
+ random = ~ 1 | bear, data = learning, family = binomial)
Individually, I get results from anova():
> anova(fm1)
numDF denDF F-v...
2004 Nov 25
1
Error in anova(): objects must inherit from classes
..., fm2)
Error in anova.lme(fm1, fm2) : Objects must inherit from classes "gls",
"gnls" "lm","lmList", "lme","nlme","nlsList", or "nls"
>
The two equations I estimated are these:
> fm1 <- glmmPQL(choice ~ day + stereotypy,
+ random = ~ 1 | bear, data = learning, family = binomial)
> fm2 <- glmmPQL(choice ~ day + envir + stereotypy,
+ random = ~ 1 | bear, data = learning, family = binomial)
Individually, I get results from anova():
> anova(fm1)
numDF denDF F-valu...
2004 Nov 24
0
problem with anova and glmmPQL
...n error message when appplying anova() to two equations
estimated using glmmPQL. I did look through the archives but didn't
finding anything relevant to my problem. The R-code and results follow.
Hope someone can help.
ANDREW
____________________________
> fm1 <- glmmPQL(choice ~ day + stereotypy,
+ random = ~ 1 | bear, data = learning, family = binomial)
iteration 1
iteration 2
iteration 3
iteration 4
> fm2 <- glmmPQL(choice ~ day + envir + stereotypy,
+ random = ~ 1 | bear, data = learning, family = binomial)
iteration 1
iteration 2
iteration 3
iteratio...
2004 Nov 25
0
MASS problem -- glmmPQL and anova
Hello:
I am really stuck on this problem. Why do I get an error message with
anova() when I compare these two equations?
Hope someone can help.
ANDREW
____________________________
> fm1 <- glmmPQL(choice ~ day + stereotypy,
+ random = ~ 1 | bear, data = learning, family = binomial)
> fm2 <- glmmPQL(choice ~ day + envir + stereotypy,
+ random = ~ 1 | bear, data = learning, family = binomial)
> anova(fm1, fm2)
Error in anova.lme(fm1, fm2) : Objects must inherit from classes &qu...