Skip to content
Prev 300047 / 398506 Next

Vuong test

On Jul 13, 2012, at 12:35 AM, sanchez ana wrote:

            
Either you did not properly copy your code above or something is amiss in your understanding.

NB1 is NOT a negative binomial model, but is a quasipoisson model. The latter is not fit using maximum likelihood, hence the Vuong test, which is a likelihood ratio based test, fails.

If you want a negative binomial model, you should be using glm.nb() in V&R's MASS package:

require(MASS)
NB1 <- glm.nb(...)

Then you can use the Vuong test from pscl.

If you have not, you might want to read:

  vignette("countreg")

Regards,

Marc Schwartz