1

I am working with a negative binomial model in R using the MASS library. I am trying to estimate the predicted count for one of my explanatory variables. Does anyone happen to know the command for the inverse link? For instance, in R, regarding the probit model, the inverse link is pnorm (coefficients). What is it for the negative binomial in R? I have been looking online with little success. Any help would be greatly appreciated.

Dyllan
  • 95
  • 9

1 Answers1

2

The standard link in most negative binomial regression models is the log link $\log(\mu) = x_i^\top \beta$. Thus, the inverse is simply $\exp(x_i^\top \beta) = \mu$.

This is also the standard link in glm.nb() in R - as well as in other R packages implementing the model. By the way, in glm and negbin objects you can access the inverse link function by object$family$linkinv. So you can always take this from the fitted model object.

Previous versions of this response erroneously claimed that this is not only the "standard" link but also the "canonical" link. However, this is only the case for the Poisson distribution (a special case of the negative binomial for $\theta \rightarrow \infty$). For discussions of the canonical link, see: Negative binomial regression question - is it a poor model? An R implementation is available in the VGAM package, see https://www.rdocumentation.org/packages/VGAM/versions/1.0-6/topics/nbcanlink

Achim Zeileis
  • 13,510
  • 1
  • 29
  • 53