Tutorials › Biostatistics › Negative Binomial Regression for Overdispersed Count Data

Count Data & Regression

Negative Binomial Regression for Overdispersed Count Data

A practical guide to modeling clinical count outcomes when the variance exceeds the mean, including the negative binomial model, dispersion, incidence rate ratios, exposure offsets, model selection, diagnostics, SAS and R implementation, and a complete worked example.

Advanced 18 min read

What You'll Learn

  • Why Poisson regression can fail when count data are overdispersed
  • How the negative binomial model introduces a dispersion parameter
  • How to interpret incidence rate ratios and confidence intervals
  • How offsets account for unequal exposure or follow-up time
  • How to compare Poisson and negative binomial models
  • How to implement and report the analysis in SAS and R

Introduction

Clinical trials frequently generate count outcomes: number of exacerbations, hospitalizations, infections, rescue-medication uses, seizures, falls, bleeding events, or other recurrent events observed during a defined period. These outcomes are nonnegative integers, so ordinary linear regression is usually not the natural starting point.

A common first model is Poisson regression. The Poisson distribution has an important mathematical property: the conditional variance equals the conditional mean. In notation,

\[ \operatorname{Var}(Y\mid X)=E(Y\mid X)=\mu. \]

Real clinical count data often violate this assumption. Patients can differ substantially in their underlying susceptibility to events, follow-up can vary, and unmeasured risk factors can create more heterogeneity than the Poisson model allows. The result is often overdispersion: the observed variance is larger than the mean.

Key idea: Negative binomial regression retains the log-linear mean structure of Poisson regression but adds a dispersion component, allowing the variance to exceed the mean. This makes it a standard modeling option for overdispersed clinical count outcomes.

What Is Overdispersion?

Suppose a clinical trial records the number of COPD exacerbations experienced by each patient during follow-up. If the average patient has approximately 1.8 exacerbations but the observed variance is 5.9, then the variance is much larger than the mean.

QuantityObserved valuePoisson implication
Mean count1.8Expected variance = 1.8
Observed variance5.9Much larger than 1.8
Variance / mean3.28Evidence of overdispersion

The ratio of the variance to the mean is a useful descriptive diagnostic, although it is not by itself a formal test of the Poisson assumption. In regression, overdispersion should be assessed using the fitted model and the structure of the data rather than relying only on an overall sample mean and variance.

Why Overdispersion Matters

If a Poisson model is fitted to substantially overdispersed data, the estimated regression coefficients can still sometimes be useful as descriptions of the mean structure, but the usual Poisson standard errors may be too small. That can make confidence intervals artificially narrow and hypothesis tests overly optimistic.

The practical consequence is important: a treatment effect may appear more statistically convincing than the data actually support.

1
Fit the count model: specify the clinical outcome and covariates.
2
Check dispersion: compare the observed/fitted variability with what the Poisson model expects.
3
If overdispersion is material: consider negative binomial regression or another model appropriate to the data-generating process.
4
Interpret the treatment effect: usually through an incidence rate ratio when an exposure offset is used.

The Poisson Regression Model

Let \(Y_i\) denote the count outcome for patient \(i\), and let \(\mu_i=E(Y_i\mid X_i)\) be the conditional mean. Poisson regression uses a log link:

\[ \log(\mu_i)=\beta_0+\beta_1X_{i1}+\beta_2X_{i2}+\cdots+\beta_pX_{ip}. \]

Equivalently,

\[ \mu_i=\exp\left(\beta_0+\beta_1X_{i1}+\cdots+\beta_pX_{ip}\right). \]

For a binary treatment variable \(T_i\), the model may be written:

\[ \log(\mu_i)=\beta_0+\beta_1T_i. \]

The exponentiated treatment coefficient is a multiplicative effect:

\[ \exp(\beta_1)=\frac{\mu_{\text{treatment}}}{\mu_{\text{control}}}. \]

When the model represents an event rate through an exposure offset, this quantity is usually called an incidence rate ratio (IRR).

The Negative Binomial Model

The negative binomial model keeps the same log-linear mean structure but permits additional variation around the mean. A common parameterization is:

\[ Y_i\sim\operatorname{NB}(\mu_i,\alpha), \]

with variance:

\[ \operatorname{Var}(Y_i\mid X_i)=\mu_i+\alpha\mu_i^2, \qquad \alpha\ge0. \]

Here, \(\alpha\) is a dispersion parameter. When \(\alpha=0\), the variance reduces to \(\mu_i\), recovering the Poisson variance relationship. When \(\alpha>0\), the variance is larger than the mean.

Important: Different software packages use different negative binomial parameterizations and may report a dispersion parameter, shape parameter, or reciprocal shape parameter. Always verify the software's definition before comparing parameter estimates across programs. The clinical interpretation of the regression coefficients, however, remains based on the mean model.

The Mean Model Is Still Log-Linear

The negative binomial regression mean is modeled as:

\[ \log(\mu_i)=\beta_0+\beta_1X_{i1}+\cdots+\beta_pX_{ip}. \]

This is why negative binomial regression often feels familiar to anyone who has used Poisson regression. The key difference is not the link function; it is the variance model.

FeaturePoisson regressionNegative binomial regression
OutcomeNonnegative countNonnegative count
Common linkLogLog
Mean modelLog-linearLog-linear
Variance\(\mu\)\(\mu+\alpha\mu^2\)
Allows overdispersionNo, not intrinsicallyYes
Typical effect measureRate ratioRate ratio

Where Does the Extra Variation Come From?

One useful way to understand the negative binomial distribution is as a mixture model. Suppose patients have different underlying event rates. Even if a Poisson distribution were appropriate for each patient's latent rate, heterogeneity across patients can produce extra-Poisson variation in the combined population.

This interpretation is especially intuitive in clinical trials. Two patients receiving the same treatment may have very different baseline susceptibility to recurrent events. A simple Poisson model treats the conditional mean as completely determining the variance, whereas the negative binomial model allows additional heterogeneity.

Clinical intuition: The negative binomial model is often appropriate when patients differ in their propensity for recurrent events in ways that are not fully captured by the measured covariates. It does not automatically prove that unmeasured heterogeneity is the cause, but it provides a variance structure capable of accommodating it.

Adding an Exposure Offset

Count outcomes are often observed over different amounts of time. One patient may contribute 12 months of follow-up while another contributes only 6 months. Comparing raw counts without accounting for exposure time can be misleading.

For event rates, include the logarithm of exposure time as a fixed coefficient of one:

\[ \log(\mu_i)=\log(t_i)+\beta_0+\beta_1X_{i1}+\cdots+\beta_pX_{ip}, \]

where \(t_i\) is the exposure or follow-up time. Equivalently,

\[ \log\left(\frac{\mu_i}{t_i}\right) = \beta_0+\beta_1X_{i1}+\cdots+\beta_pX_{ip}. \]

The term \(\log(t_i)\) is called an offset. It is not estimated as an ordinary regression coefficient; its coefficient is fixed at 1.

Why the Offset Matters

Imagine two patients who experience two hospitalizations each. If Patient A is followed for one year and Patient B is followed for six months, the underlying hospitalization rates are not the same.

PatientHospitalizationsFollow-upEvents per year
A21.0 year2.0
B20.5 year4.0

The offset allows the regression model to compare rates rather than treating equal counts as equal exposure.

Interpreting the Regression Coefficients

Suppose treatment is coded as \(T=1\) for the experimental arm and \(T=0\) for control:

\[ \log(\mu_i)=\log(t_i)+\beta_0+\beta_1T_i. \]

The treatment incidence rate ratio is:

\[ \operatorname{IRR}=\exp(\beta_1). \]

Interpretation depends on the direction of the outcome. For an undesirable event such as hospitalization, an IRR below 1 indicates a lower event rate in the treatment group.

IRRInterpretation
1.00No multiplicative difference in event rates
0.80Treatment rate is estimated to be 20% lower
0.50Treatment rate is estimated to be 50% lower
1.25Treatment rate is estimated to be 25% higher
2.00Treatment rate is estimated to be twice as high

For a coefficient \(\beta_1\), the approximate percent change in the expected rate is:

\[ 100\left[\exp(\beta_1)-1\right]\%. \]

Confidence Intervals for the IRR

If the estimated treatment coefficient is \(\widehat{\beta}_1\) with standard error \(SE(\widehat{\beta}_1)\), an approximate 95% confidence interval on the log scale is:

\[ \widehat{\beta}_1 \pm 1.96\,SE(\widehat{\beta}_1). \]

Exponentiating the limits gives the IRR confidence interval:

\[ \left[ \exp\left(\widehat{\beta}_1-1.96SE(\widehat{\beta}_1)\right), \exp\left(\widehat{\beta}_1+1.96SE(\widehat{\beta}_1)\right) \right]. \]

If the 95% confidence interval excludes 1, the corresponding two-sided Wald test rejects the null hypothesis that the rate ratio equals 1 at the 5% level, subject to the usual model and large-sample approximations.

Worked Clinical Example: Recurrent Hospitalizations

Suppose a randomized Phase III trial compares an experimental treatment with placebo. The primary recurrent-event analysis considers the number of disease-related hospitalizations during follow-up. The investigators anticipate substantial heterogeneity between patients and therefore plan to evaluate overdispersion.

Planning featureValue
OutcomeNumber of disease-related hospitalizations
TreatmentExperimental vs placebo
ExposurePatient-years of follow-up
Primary count modelNegative binomial regression
LinkLog
Offset\(\log(\text{follow-up time})\)
Effect measureIncidence rate ratio

Example Results

Assume the fitted model produces:

ParameterEstimateStandard ErrorIRR95% CI for IRR
Treatment-0.2880.1150.750.60 to 0.94

The treatment effect is:

\[ \exp(-0.288)\approx0.75. \]

Thus, after accounting for the exposure time and other model terms, the estimated hospitalization rate in the experimental arm is approximately 25% lower than the rate in the placebo arm.

The 95% confidence interval of 0.60 to 0.94 does not include 1.00, indicating evidence of a difference in hospitalization rates under the fitted model.

Do not say “25% fewer patients were hospitalized.” An IRR describes a relative difference in the event rate, not necessarily the proportion of patients experiencing at least one event. A recurrent-event count model allows one patient to contribute multiple events.

Step-by-Step Model Construction

1
Define the count: identify exactly what constitutes one event.
2
Define exposure: determine whether follow-up time should enter the model as an offset.
3
Specify covariates: include treatment and prespecified prognostic or adjustment variables as appropriate.
4
Assess dispersion: determine whether the Poisson variance assumption is plausible.
5
Fit the negative binomial model: estimate the mean structure and dispersion.
6
Check fit: examine residuals, predicted counts, influential observations, and dispersion behavior.
7
Interpret the IRR: exponentiate the treatment coefficient and report its confidence interval.

Poisson vs. Negative Binomial: Model Selection

A common workflow is to fit both Poisson and negative binomial models and assess whether the additional dispersion component is supported by the data and by clinical/statistical reasoning.

One descriptive quantity is the Pearson dispersion statistic:

\[ \widehat{\phi} = \frac{\sum_i r_{P,i}^2}{df}, \]

where \(r_{P,i}\) are Pearson residuals. A value substantially greater than 1 can indicate overdispersion, although the exact interpretation depends on the model, sample size, covariates, and estimation method.

SituationPotential implication
Variance approximately equals meanPoisson may be adequate
Variance substantially exceeds meanConsider negative binomial or another overdispersed count model
Excess zerosConsider whether a zero-inflated or hurdle model is scientifically justified
Repeated events with within-patient dependenceConsider recurrent-event methods or models accounting for correlation
Time-to-first event is primaryA survival model may be more appropriate than a count model
Model choice should follow the data-generating question. Negative binomial regression is not automatically the best answer whenever a count has variance greater than its mean. The estimand, follow-up structure, recurrent-event mechanism, excess zeros, and within-patient dependence all matter.

A Note About Quasi-Poisson Models

Another response to overdispersion is a quasi-Poisson model. It retains the Poisson mean structure but relaxes the variance assumption through a dispersion multiplier. A simplified representation is:

\[ \operatorname{Var}(Y_i\mid X_i)=\phi\mu_i. \]

This can provide robust inference about the mean relationship when the main concern is the variance, but it differs from negative binomial regression in its variance structure and likelihood-based interpretation.

FeatureNegative binomialQuasi-Poisson
Mean linkUsually logUsually log
Allows overdispersionYesYes
Variance form\(\mu+\alpha\mu^2\)\(\phi\mu\)
Likelihood-based inferenceYes, under the specified NB likelihoodNo full likelihood in the usual quasi-likelihood formulation
Common useOverdispersed count distributionsRobust mean-model inference with extra-Poisson variance

Zero Inflation: When Negative Binomial Is Not Enough

Some clinical count datasets contain many more zeros than a standard negative binomial model can reasonably accommodate. For example, a large proportion of patients may never experience a recurrent event because they belong to a structurally event-free subgroup, while the remaining patients have positive counts.

In that setting, a zero-inflated negative binomial model or hurdle model may be considered. These models answer somewhat different scientific questions and should not be selected merely because they produce a better numerical fit.

Do not equate “overdispersion” with “zero inflation.” A negative binomial model already permits extra variance. Zero inflation is a more specific claim about the mechanism producing an excess of zeros.

Repeated Events and Patient-Level Dependence

Negative binomial regression models the distribution of a count, but clinical recurrent events can have additional structure. Events within the same patient are not independent in a biological sense, and the timing of events may matter.

If the scientific question concerns the overall event rate over follow-up, a negative binomial rate model can be useful. If the analysis instead concerns event timing, within-patient event dependence, or recurrent-event processes, methods such as Andersen–Gill, Prentice–Williams–Peterson, frailty models, or other recurrent-event approaches may be more appropriate depending on the estimand.

Offset vs. Covariate: An Important Distinction

An exposure variable used as an offset is not the same as an ordinary covariate. For a follow-up time \(t_i\), the offset is:

\[ \log(t_i). \]

Its coefficient is fixed at 1. If instead you include follow-up time as an ordinary covariate, the model estimates its coefficient from the data and makes a different assumption about how exposure relates to the mean count.

SpecificationMeaning
\(\log(t_i)\) as offsetModels an event rate per unit exposure
\(t_i\) as ordinary covariateEstimates an association between follow-up time and expected count

Example With a Continuous Covariate

Suppose age is included along with treatment:

\[ \log(\mu_i) = \log(t_i) + \beta_0 + \beta_1T_i + \beta_2\operatorname{Age}_i. \]

The treatment IRR is still:

\[ \exp(\beta_1). \]

The age effect is:

\[ \exp(\beta_2), \]

which is the multiplicative change in the event rate associated with a one-unit increase in age, holding the other variables constant. For clinically interpretable reporting, a larger increment such as 10 years may be more useful:

\[ \operatorname{IRR}_{10\text{ years}}=\exp(10\beta_2). \]

Interactions

An interaction can be used when the treatment effect is expected to differ across a prespecified subgroup. For example:

\[ \log(\mu_i) = \log(t_i) + \beta_0 + \beta_1T_i + \beta_2G_i + \beta_3(T_iG_i). \]

The treatment IRR in the reference subgroup is \(\exp(\beta_1)\), whereas the treatment IRR in the \(G=1\) subgroup is:

\[ \exp(\beta_1+\beta_3). \]

Subgroup analyses should be prespecified when possible, and interaction terms should not be introduced simply because one subgroup happens to have a favorable point estimate.

Model Diagnostics

A negative binomial model should not be accepted solely because its estimated dispersion parameter is positive. Model adequacy should be evaluated using several complementary diagnostics.

1. Dispersion

Confirm that the fitted model provides a materially better representation of the observed variability than a Poisson model when such a comparison is appropriate.

2. Predicted vs. Observed Counts

Compare the distribution of observed counts with model-predicted counts. Look for systematic underprediction of high counts or other patterns that suggest misspecification.

3. Residuals

Examine Pearson, deviance, or other appropriate residuals. Patterns can indicate omitted covariates, nonlinear effects, incorrect functional forms, or influential observations.

4. Influential Patients

A small number of patients with unusually high event counts can have substantial influence on a count model. Investigate whether such observations are clinically valid and whether the fitted effect depends disproportionately on them.

5. Covariate Functional Form

Continuous predictors should not automatically be assumed to have a linear effect on the log mean. Restricted cubic splines, transformations, or clinically meaningful categories may sometimes be appropriate.

Likelihood Ratio Comparison With Poisson

If the negative binomial model is formulated as a nested extension of the Poisson model, a likelihood-based comparison can sometimes be used to assess whether the additional dispersion parameter is supported. However, the boundary nature of the null value and the exact estimation method require careful interpretation.

In practice, do not base model choice on a single automatic test. Consider the dispersion diagnostics, clinical structure, goodness of fit, prespecified analysis strategy, and scientific estimand together.

SAS Example

A common SAS implementation uses PROC GENMOD with a negative binomial distribution and log link. The following example models recurrent hospitalizations with treatment and age and uses follow-up time as an offset.

proc genmod data=analysis;
    class treatment(ref='Placebo');
    model hospitalizations =
          treatment age
          / dist=negbin
            link=log
            offset=log_followup
            type3;
    estimate 'Treatment IRR'
             treatment 1 -1
             / exp cl;
run;

Here, log_followup should contain the natural logarithm of the exposure time. The exact treatment contrast depends on how the treatment variable is coded.

SAS reporting tip: Verify the reference level and contrast coding before interpreting the exponentiated estimate. A sign reversal in the treatment coefficient can simply reflect which arm is the numerator of the reported rate ratio.

R Example

In R, the MASS package provides a widely used glm.nb() function for fitting negative binomial generalized linear models.

library(MASS)

fit_nb <- glm.nb(
  hospitalizations ~ treatment + age + offset(log(followup)),
  data = analysis
)

summary(fit_nb)

exp(coef(fit_nb))
exp(confint(fit_nb))

The exponentiated treatment coefficient is the treatment rate ratio when the model is specified with the exposure offset.

Worked Calculation of an IRR

Suppose the fitted treatment coefficient is:

\[ \widehat{\beta}_1=-0.3567. \]

Then:

\[ \operatorname{IRR} = \exp(-0.3567) \approx0.70. \]

The estimated event rate is therefore approximately 30% lower in the treatment group:

\[ 100(0.70-1)=-30\%. \]

If the 95% confidence interval for the IRR were 0.55 to 0.89, the appropriate interpretation would be that the treatment group has an estimated 30% lower event rate, with a 95% confidence interval corresponding to rate reductions of approximately 11% to 45%.

Clinical Interpretation: Count vs. Risk

One of the most common reporting errors is to confuse a rate ratio with a risk ratio. These are different estimands.

MeasureQuestion answered
Risk ratioHow does the probability of experiencing at least one event differ?
Rate ratio / IRRHow does the event rate per unit exposure differ?
Mean count ratioHow does the expected number of events differ over a specified exposure structure?

A patient can experience zero, one, or many events. Therefore, a recurrent-event count analysis should be reported using language consistent with the estimand.

Common Mistakes

  1. Using Poisson regression automatically for every count outcome. A count outcome does not guarantee that the Poisson variance assumption is adequate.
  2. Checking only the overall sample variance. Regression overdispersion is conditional on the model and covariates; assess the fitted model rather than relying on one descriptive ratio.
  3. Ignoring follow-up time. When the estimand is an event rate, unequal exposure should generally be handled through an appropriate offset.
  4. Interpreting an IRR as a risk ratio. An IRR concerns event rates, not necessarily the probability of at least one event.
  5. Calling every excess zero “zero inflation.” Excess zeros require a stronger structural interpretation than ordinary overdispersion.
  6. Ignoring recurrent-event dependence. A count model may not answer a question about event timing or within-patient event processes.
  7. Comparing dispersion parameters across software without checking parameterization. Negative binomial parameter definitions differ across implementations.
  8. Reporting only the p-value. For clinical interpretation, report the IRR, confidence interval, and clearly defined estimand.
  9. Adding interactions after looking at the data. Subgroup effects and interactions should generally be scientifically motivated and prespecified where possible.
  10. Assuming negative binomial regression solves every count-model problem. Zero inflation, truncation, dependence, structural zeros, and time-to-event questions may require other methods.

A Practical Analysis Workflow

1
Define the recurrent count endpoint precisely.
2
Determine the exposure period and whether an offset is required.
3
Specify treatment, covariates, and clinically motivated interactions.
4
Fit an appropriate Poisson model as a reference when useful.
5
Assess overdispersion and overall model adequacy.
6
Fit the negative binomial model when its variance structure is justified.
7
Examine residuals, predicted counts, influential observations, and covariate functional forms.
8
Evaluate whether excess zeros or recurrent-event dependence require a different framework.
9
Report the treatment IRR with its confidence interval and define the exposure scale.
10
Document model selection and sensitivity analyses in the SAP and CSR.

What Should Be Reported in a Statistical Analysis Plan?

For a clinical trial using negative binomial regression, the SAP should make the analysis reproducible and clinically interpretable. At minimum, describe:

  • Definition of the count endpoint
  • Observation and exposure period
  • Primary analysis population
  • Treatment coding and reference arm
  • Covariates and prespecified interactions
  • Link function
  • Negative binomial parameterization
  • Offset definition, if applicable
  • Method for estimating the dispersion parameter
  • Primary effect measure, usually the IRR for a rate model
  • Confidence interval and hypothesis-testing method
  • Handling of incomplete follow-up
  • Rules for missing or unavailable event information
  • Model diagnostics and sensitivity analyses
  • Criteria for considering alternative count or recurrent-event models

Sensitivity Analyses

Sensitivity analyses can be particularly useful when the count endpoint has unusual features. Potential analyses may include:

  • Poisson regression with an appropriate variance adjustment
  • Negative binomial regression with alternative clinically justified covariate specifications
  • Alternative handling of follow-up or exposure time
  • Models addressing influential observations
  • Alternative recurrent-event approaches when event timing is important
  • Zero-inflated or hurdle models when there is a strong scientific rationale for excess zeros
  • Alternative definitions of the recurrent-event endpoint
Prespecification matters: Sensitivity analyses are most informative when they address plausible sources of uncertainty identified before the primary results are examined, rather than being used to search for a preferred result.

Negative Binomial Regression in a Clinical Trial CSR

A concise CSR presentation might report the treatment effect as follows:

Example reporting language: The number of disease-related hospitalizations was analyzed using negative binomial regression with treatment as a fixed effect and the logarithm of patient-years of follow-up included as an offset. The estimated incidence rate ratio for the experimental treatment versus placebo was 0.75 (95% CI: 0.60, 0.94), indicating an estimated 25% reduction in the hospitalization rate in the experimental treatment group. The analysis accounted for overdispersion in the recurrent-event count distribution.

The final wording should reflect the actual prespecified model, estimation method, confidence interval method, and analysis population.

How to Decide Whether Negative Binomial Regression Fits the Question

QuestionPotential primary approach
How many recurrent events occur per unit follow-up?Negative binomial rate model can be appropriate
Does the patient experience at least one event?Binary/logistic or survival framework may be more appropriate
How long until the first event?Time-to-event model
How does event timing across multiple events differ?Recurrent-event survival methods may be preferable
Are there many structural zeros?Consider zero-inflated/hurdle approaches
Are counts bounded or truncated?Consider a distribution/model reflecting the support of the outcome

The Most Important Concept

Negative binomial regression is not simply “Poisson regression with a different distribution.” The central modeling change is the variance assumption.

Poisson regression imposes:

\[ \operatorname{Var}(Y\mid X)=\mu. \]

Negative binomial regression allows:

\[ \operatorname{Var}(Y\mid X)=\mu+\alpha\mu^2. \]

That extra variance can be crucial when clinical count outcomes show substantial heterogeneity. The mean model remains log-linear, and when an exposure offset is included, the exponentiated treatment coefficient has a direct interpretation as an incidence rate ratio.

Bottom line: Use negative binomial regression when the scientific outcome is a count and the data exhibit overdispersion that is reasonably represented by a negative binomial variance structure. For rate analyses, include an appropriate exposure offset. Interpret exponentiated coefficients as multiplicative effects on the event rate, not automatically as risk ratios. Finally, check whether zero inflation, recurrent-event dependence, unusual follow-up, or other structural features call for a different model.

Summary

ConceptKey point
OutcomeNonnegative count
Poisson variance\(\operatorname{Var}(Y\mid X)=\mu\)
Negative binomial variance\(\operatorname{Var}(Y\mid X)=\mu+\alpha\mu^2\)
LinkUsually log
ExposureUse \(\log(t)\) as an offset for rate modeling
Main treatment effect\(\exp(\beta_{\text{treatment}})\)
InterpretationIncidence rate ratio when modeling an event rate
Main reason to use NBAllow overdispersion beyond the Poisson assumption
Key cautionConsider zero inflation, dependence, and alternative estimands when appropriate

References

Hilbe, J.M. Negative Binomial Regression. Cambridge University Press.

McCullagh, P. & Nelder, J.A. Generalized Linear Models. Chapman & Hall.

Agresti, A. Foundations of Linear and Generalized Linear Models. Wiley.

Cameron, A.C. & Trivedi, P.K. Regression Analysis of Count Data. Cambridge University Press.

Long, J.S. & Freese, J. Regression Models for Categorical Dependent Variables Using Stata. Stata Press.