I did the over-dispersion test for my Poisson regression model in R, to check whether negative binominal is a better option.
I used stats
package for conducting Poisson regression and AER
package for testing overdispersion.
dispersiontest(m2.int,trafo=1)
Below is the output of the test
Overdispersion test
data: m1.int
z = 8.0174, p-value = 0.0000000000000005401
alternative hypothesis: true alpha is greater than 0
sample estimates:
alpha
0.5118541
I don't know how to interpret the result. Does the significant p-value mean that the model is over-dispersed?
?AER::dispersiontest
to understand how the null and alternative hypotheses are defined. By default, you are testing for overdispersion (alternative = "greater"
) with α > 0. With that in mind, the output is pretty self-explanatory. $\endgroup$