Ask Mallard
Analysis method

Zero-inflated Poisson regression

3 min read

Zero-inflated Poisson regression models a zero-only group alongside a group whose counts, including some zeros, follow a Poisson model.

Fit

When to use it, and when not to

Use it when

  • The outcome counts events, and a group unable to have the event is plausible from clinical knowledge.
  • The count group fits a Poisson distribution after allowing for predictors and time at risk.

Not when

Before you start

What you need

Decide these first
  1. The event and observation windowoutcomeTypeCount the same event over a known period for everyone.
  2. Time at riskUse log time as an offset in the count component when follow-up differs.
  3. The reason for a zero-only groupExplain why some patients cannot have the event, rather than inferring that group from many zeros.
  4. Predictors for each componentState which factors explain group membership and which explain counts among those able to have events.
It rests on these
  1. Two event processes are plausible.How to check: A zero can come from either group. Observed zeros do not identify group membership.
  2. Within the count group, the conditional variance equals the conditional mean.How to check: Check fitted counts and residuals. Extra spread may need a negative binomial component.
  3. Patients are independent after accounting for the model.How to check: Repeated counts or patients sharing a clinic need dependence handled as well.
  4. Time at risk counts only time when an event could occur.How to check: Confirm each denominator and the event window before fitting.

Plain language

How it works

The model combines two parts. One estimates the chance of belonging to a zero-only group. The other models counts with a Poisson distribution among patients able to have events. These patients may also have zero events. Use both parts when estimating the population mean.

Excess zeros

The count part's rate ratio applies to people at risk, not to the whole population. A zero-only group needs a reason in the event process; excess zeros alone are not evidence of such a group.

What adjusted rate ratios look like
ExposureCovariate ACovariate B12
Illustrative placeholder. Every value in this figure is invented to show the shape of the result, and is not an estimate of anything.Only the exposure row estimates the effect of interest. The other rows are adjusted for a set chosen to identify the exposure effect, not their own, so reading them as effects is the Table 2 fallacy (Westreich and Greenland 2013).

Worked example

A worked example

Invented for illustration
Setting
A clinic studies visits to a service. Some patients have no access to that service.
Question
How can both sources of zero visits be represented?
Approach
Assume a zero-only share of 0.2 and a Poisson mean of 1 in the count group.
Result
About 49 of 100 patients (49 in 100) have no visits: 0.2 + 0.8 × exp(-1) = 0.494.
What it means
Patients able to visit can still have zero visits. The zero-only share is smaller than the total share with zero visits.

In practice

Recent studies PubMed search · not vetted

Searching PubMed…

Watch out

Common mistakes

The one to remember

Many zeros do not prove a zero-only group. The count component rate ratio is conditional on that group being able to have events; it is not the population rate ratio.

  • Treating every observed zero as a patient unable to have an event.Instead: The Poisson count group also produces zeros. Group membership is not observed from the count alone.
  • Reporting the count component rate ratio as a population rate ratio.Instead: Combine both fitted components to estimate population means. Report which component each coefficient describes.
  • Choosing the mixture only because it gives a smaller P value.Instead: Use the clinical event process and model checks to justify the mixture.

Inside Mallard

How Mallard uses this

For count outcomes with a rate ratio, Mallard may offer zero-inflated Poisson regression. Its code link fits both components; no catalog formula sizes it.

Code example in Mallard: Zero-inflated Poisson regression for counts with structural zeros (zero-inflated-poisson).
Atlas node analysis.count_regression, the id a plan cue records.
Code for this method
Loading…

Related Learn pages

Related designs and methods

Evidence

Sources & further reading

  1. Too many zeros and/or highly skewed? A tutorial on modelling health behaviour as count data with Poisson and negative binomial regression (opens in a new tab) · Health Psychol Behav Med · doi 10.1080/21642850.2021.1920416
  2. The analysis of count data: a gentle introduction to poisson regression and its alternatives (opens in a new tab) · J Pers Assess · doi 10.1080/00223890802634175
Prepared with AI assistance. PubMed record verified, confirm it supports this use. Record checks do not establish independent methodological approval.
Last source review: 2026-11-07
AI-generated educational content
Mallard uses reputable methodological and reporting sources, but this material may contain errors or omit important context. Verify important methodological decisions with the cited sources and, when appropriate, a qualified research methodologist or statistician.