odTest(glmobj, digits = max(3, getOption("digits") - 3))
negbin
produced by glm.nb
A Poisson model is run using glm
with family set to link{poisson}
, using the
formula
in the negbin model object passed as input. The
logLik
functions are used to extract the log-likelihood
for each model.
glm.nb
, logLik
data(bioChemists)
require(MASS)
modelnb <- glm.nb(art ~ .,
data=bioChemists,
trace=TRUE)
odTest(modelnb)
Run the code above in your browser using DataLab