[R] glm.nb, anova.negbin

Jari Oksanen jarioksa at cc.oulu.fi
Wed Sep 26 15:14:26 CEST 2001


juli at ceam.es said:
> > Error in get(x, envir, mode, inherits) : invalid first argument
> > In addition: Warning message:
> > tests made without re-estimating theta in: anova.negbin(t2) >

I looked quickly, and it seems that this error comes actually from 
`anova.glm'  and from the following `get':

        if (!is.function(method))
            method <- get(method, mode = "function")

`anova.negbin' sends the  `negbin' `object' to `anova.glm', but the 
negbin object does not have a method (`glm' objects have method 
"glm.fit"). There seem to be some other differences in `negbin' and 
`glm' objects, so that `anova.glm' can't handle them (e.g., glm.control 
object is missing in `negbin' object).

I would like to help, but I don't have time now (got to mark exams).

cheers, jari oksanen
-- 
Jari Oksanen -- Dept Biology, Univ Oulu, 90014 Oulu, Finland
Ph. +358 8 5531526, cell +358 40 5136529, fax +358 8 5531061
email jari.oksanen at oulu.fi, homepage http://cc.oulu.fi/~jarioksa/


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list