Skip to content
Celeus

Poisson regression

Shown in the app as poisson_regression. Part of the method reference, under Regression.

When to use

Model a COUNT outcome (non-negative integers, e.g. number of events) from predictors; assumes the variance equals the mean.

What you provide

  • Outcome: one numeric column.
  • Predictors: one or more columns.

Options

Missing data

  • Complete case (listwise deletion)

Multiple comparisons

  • Not adjustable for this method. Where it makes post-hoc comparisons, the procedure applies its own correction.

Confidence level

Every interval in the result is reported at the level you choose:

  • 90%
  • 95%
  • 99%

Alternatives that take the same inputs:

Other methods under Regression:

Guides that discuss this method

How to read the output

Poisson and negative binomial regression model a count outcome, for example the number of days a pupil was absent or the number of breaks in a length of yarn, from one or more predictors. Only rows with a value for the outcome and every predictor are used, and the number of rows analysed is reported.

Coefficients and rate ratios. Each coefficient is on the log scale. Exponentiated, it is a rate ratio: for a numeric predictor, the multiplicative change in the expected count per one-unit increase; for a categorical predictor, the expected count in that category relative to the reference category, which is always the first category (an ordered category is compared with its first level too, never fitted as a polynomial trend). Each is adjusted for the other predictors. The headline result is the first predictor’s rate ratio with its confidence interval. Intervals are profile-likelihood intervals; you can choose a 90%, 95% or 99% level, and every interval in the result uses it.

Testing a whole predictor. A categorical predictor with three or more levels has several contrasts, so each predictor is also tested as a whole with a likelihood-ratio test, and the whole model is tested against a model with no predictors. Read the whole-predictor test before any single contrast.

Overdispersion and the negative binomial model. A Poisson model assumes the variance of the counts equals their mean. Counts often vary more than that, and then a Poisson model’s standard errors are too small and its p-values too optimistic. Celeus reports the residual deviance divided by its degrees of freedom; above 1.5, a working convention rather than a published cut-off, the Poisson result carries a warning and offers a one-click re-run as negative binomial regression. The negative binomial model estimates an extra dispersion parameter, theta (alpha = 1/theta), and its results include a likelihood-ratio test against the Poisson model. Its p-value is halved, because the Poisson model sits on the edge of the negative binomial family (Self and Liang, 1987). In that model each predictor’s test holds theta at its full-model value. When the data show no extra variation, theta keeps growing without settling; Celeus says so, and the Poisson model is then the simpler one to report.

Sources: Nelder JA, Wedderburn RWM (1972), Journal of the Royal Statistical Society, Series A 135(3):370-384, doi:10.2307/2344614. Hilbe JM (2011), Negative Binomial Regression, 2nd ed., Cambridge University Press, doi:10.1017/CBO9780511973420. Self SG, Liang K-Y (1987), Journal of the American Statistical Association 82(398):605-610, doi:10.1080/01621459.1987.10478472.

Worked examples

Celeus's result on a published or illustrative dataset, next to an independent computation and, where one exists, a published value. The data themselves are not reproduced here.

datasets::warpbreaks

  • Source: Published dataset distributed with an R package
  • Licence: base R (GPL)
  • Reference: Tippett (1950), Technological Applications of Statistics; analysed as a Poisson GLM in Venables & Ripley (2002), Modern Applied Statistics with S, 4th ed. - the standard worked Poisson-regression example
QuantityCeleusIndependent computationPublished valueAgrees
Estimate-0.205988-0.205988-Yes
p-value6.48978e-056.48978e-05-Yes

datasets::warpbreaks

  • Source: Published dataset distributed with an R package
  • Licence: base R (GPL)
  • Reference: Tippett (1950), Technological Applications of Statistics; independent computation
QuantityCeleusIndependent computationPublished valueAgrees
Estimate-0.205988-0.205988-Yes
p-value6.48978e-056.48978e-05-Yes
Confidence interval-0.290952, -0.121272-0.290951, -0.121272-Yes
Effect size0.8138420.813842-Yes
Effect size confidence interval0.747552, 0.8857930.747552, 0.885793-Yes
Test statistic for each model term16.0388, 70.941616.0388, 70.9416-Yes
Whole-model likelihood-ratio statistic86.980386.9803-Yes
Number of observations5454-Yes

datasets::warpbreaks (tension L only)

  • Source: Published dataset distributed with an R package
  • Licence: base R (GPL)
  • Reference: Tippett (1950), Technological Applications of Statistics; independent computation
QuantityCeleusIndependent computationPublished valueAgrees
Estimate-0.456627-0.456627-Yes
p-value1.23972e-081.23972e-08-Yes
Confidence interval-0.614809, -0.300297-0.614808, -0.300296-Yes
Effect size0.6334160.633416-Yes
Effect size confidence interval0.540744, 0.7405980.540745, 0.740599-Yes
Test statistic for each model term33.273533.2735-Yes
Whole-model likelihood-ratio statistic33.273533.2735-Yes
Number of observations1818-Yes

datasets::InsectSprays

  • Source: Published dataset distributed with an R package
  • Licence: base R (GPL)
  • Reference: Beall (1942), Biometrika 32(3/4); independent computation
QuantityCeleusIndependent computationPublished valueAgrees
Estimate0.05588050.0558805-Yes
p-value0.5971890.597189-Yes
Confidence interval-0.151361, 0.263523-0.151360, 0.263522-Yes
Effect size1.057471.05747-Yes
Effect size confidence interval0.859537, 1.3015100.859538, 1.301510-Yes
Test statistic for each model term310.713310.713-Yes
Whole-model likelihood-ratio statistic310.713310.713-Yes
Number of observations7272-Yes

MASS::Insurance

  • Source: Published dataset distributed with an R package
  • Licence: MASS (GPL)
  • Reference: Baxter, Coutts & Ross (1980); Venables & Ripley (2002), Modern Applied Statistics with S, 4th ed.; independent computation (no exposure offset)
QuantityCeleusIndependent computationPublished valueAgrees
Estimate-0.438219-0.438219-Yes
p-value2.02014e-242.02014e-24-Yes
Confidence interval-0.522707, -0.354241-0.522707, -0.354241-Yes
Effect size0.6451850.645185-Yes
Effect size confidence interval0.592913, 0.7017060.592914, 0.701706-Yes
Test statistic for each model term803.439, 938.502, 2373.430803.439, 938.502, 2373.430-Yes
Whole-model likelihood-ratio statistic4115.374115.37-Yes
Number of observations6464-Yes

Validation report

References

  1. Nelder, J. A., Wedderburn, R. W. M. (1972). Generalized linear models. Journal of the Royal Statistical Society, Series A 135: 370-384. doi:10.2307/2344614 doi:10.2307/2344614