Appendix L

Negative Binomial Regression

(Source: Cameron and Trivedi [1])

In the Poisson regression model img has mean img and variance img. We now relax the variance assumption, because data almost always reject the restriction that the variance equals the mean, and we maintain the assumption that the mean is img.

We use the general notation

(L.1) equation

to denote the conditional variance of img. It is natural to continue to model the variance as a function of the mean, with

(L.2) equation

for some specified function img and where img is a scalar parameter. Most models specialize this to the general variance function

(L.3) equation

where the constant img is specified. Analysis is usually restricted to two special cases, in addition to the Poisson case of img

First, the NB1 variance function sets img. Then the variance

(L.4) equation

is a multiple of the mean.

Second, the NB2 variance function sets img. Then the variance is quadratic in the mean:

(L.5) equation

In both cases the dispersion parameter img is to be estimated.

The most common implementation of the negative binomial is the NB2 model, with NB2 variance function img. It has density

(L.6) equation

The function img is a gamma function, defined as

(L.7) equation

It is shown that img, if img is an integer. Thus,

(L.8) equation

Substituting Equation (L.8) into (L.7), the log-likelihood function for exponential mean img is therefore

(L.9) equation

The NB2 MLE img is the solution to the first-order conditions

(L.10) equation

(L.11) equation

The NB1 log-likelihood function is

(L.12) equation

The NB1 MLE solves the first-order conditions

(L.13) equation

(L.14) equation

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset