Negative binomial regression models overdispersed counts with a negative binomial distribution, commonly using a logarithmic link for the mean.
For known size , the negative binomial distribution is an exponential family with natural parameter and cumulant . A generalized linear model can use a logarithmic link function for its mean, even though that link is not canonical. Jointly estimating the size changes the family and variance function, requiring additional updates beyond a single fixed-family GLM fit; this is what
MASS::glm.nb does.With known size , the mean-dependent log mass of a negative binomial distribution is . Its derivative is , so the saturated mean is , including its boundary value zero. Subtracting the fitted log mass from that maximum gives the displayed deviance. This formula needs no fitted-intercept cancellation. As , its second term tends to and it becomes the full Poisson deviance.
Articles by others on the same topic
There are currently no matching articles.