Ask Mallard
Analysis method

Poisson regression

4 min read

Poisson regression compares event counts or rates while allowing for measured predictors and the time each person was observed.

Fit

When to use it, and when not to

Use it when

  • Your outcome counts events within a defined window.
  • You need a rate ratio and know the exposure time for each observation.

Not when

Before you start

What you need

Decide these first
  1. Event counts and counting windowoutcomeTypeDefine which events count, including repeat events.
  2. Exposure time for each observationUse its logarithm as an offset, a predictor whose coefficient is fixed rather than estimated.
  3. Exposure contrast and adjustment setsummaryMeasureState which rate ratio answers the question. For an effect, plan power or interval width for that contrast.
It rests on these
  1. The log of the mean count follows the specified predictor model.How to check: Check the shape of continuous terms and compare fitted with observed counts.
  2. Conditional variance equals the conditional mean.How to check: Check residuals and dispersion after accounting for predictors, rather than comparing the raw mean and variance.
  3. Observations are independent for ordinary standard errors.How to check: Repeated counts or shared sites need a model or variance estimate that accounts for clustering.

Plain language

How it works

Poisson regression uses a log link: predictors add on the log mean, and exponentiating a slope gives a count ratio. With a log-time offset, it gives a rate ratio. The offset fixes proportionality to time; check that this fits the event process.

What the fit means

Frome describes rate regression and its likelihood-based fitting. Gardner and colleagues explain why extra variation can invalidate ordinary Poisson uncertainty. A confidence interval for a regression coefficient uses profile likelihood or a Wald approximation. It is not a single-rate interval.

The method as a flow
A single-method workflow. Counts, predictors and exposure time. Fit a log mean with log-time offset. Exponentiate slopes to compare rates. The diagram describes the analysis steps, not results from any study.Poisson regressionCounts, predictors and exposure timeFit a log mean with log-time offsetExponentiate slopes to compare ratesModel assumptions and the study design still determine what the estimate can support.
Conceptual diagram. It shows the structure of the idea, not data from any study.

Worked example

A worked example

Invented for illustration
Setting
Two independent groups contribute 100 person-years each, with 20 events in the exposed group and 40 in the comparison group.
Question
How do their event rates compare?
Approach
Fit a Poisson model with exposure group and log person-time as the offset. No other predictors enter this simple illustration.
Result
The fitted rates are 20 per 100 and 40 per 100 person-years. The rate ratio is 0.50; the rate difference is -20 per 100 person-years.
What it means
The log coefficient is -0.693, with standard error 0.274. Its 95% Wald interval, exponentiated, is 0.29 to 0.86. These are event rates, not risks.

In practice

Recent studies PubMed search · not vetted

Searching PubMed…

Watch out

Common mistakes

The one to remember

Poisson regression assumes the conditional variance equals the conditional mean. Extra variation or correlated observations can make ordinary standard errors too small. An offset handles exposure time; it does not remove confounding or dependence.

  • Using follow-up time as an ordinary covariate.Instead: Use the log-time offset when the model assumes counts scale with exposure time.
  • Using a single-rate exact interval for a regression coefficient.Instead: Use profile-likelihood or Wald intervals for coefficients; exponentiate both limits for rate ratios.
  • Treating an adjusted association as proof of benefit.Instead: Define the causal assumptions and handle confounding. State a missing-data assumption, such as MAR, and assess plausible departures.

Inside Mallard

How Mallard uses this

Mallard links named Poisson regression to this method. Its method list and code entry have no dedicated catalog sizing formula.

Code example in Mallard: Rate regression on overdispersed counts with unequal follow-up (poisson-rate-regression-overdispersed).
Atlas node analysis.poisson_regression, the id a plan cue records.
Code for this method
Loading…

Related Learn pages

Related designs and methods

Evidence

Sources & further reading

  1. The analysis of rates using Poisson regression models (opens in a new tab) · Biometrics
  2. Regression analyses of counts and rates: Poisson, overdispersed Poisson, and negative binomial models (opens in a new tab) · Psychol Bull · doi 10.1037/0033-2909.118.3.392
Prepared with AI assistance. Source titles, authors, years and available DOIs were checked against PubMed on 2026-11-06. No independent professional approval is claimed. Frome supports the log-link rate model and fitting; Gardner supports the dispersion warning. PubMed supplies no DOI for Frome.
Last source review: 2026-11-06
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.