Robust Poisson Regression

Statistics
Introduced by
Guangyong Zou
Year
2004
Type
GLM with robust variance
Family
Regression / GLM

What does it do?

Robust Poisson regression fits a Poisson log-linear model to a binary outcome but replaces the model-based variance with the empirical sandwich estimator.

The Poisson variance assumption does not hold for binary data, but the sandwich correction keeps the standard errors valid as long as the mean (risk) model is correctly specified. Zou (2004) proposed the approach to estimate relative risks directly, and it is used in epidemiology as an alternative to log-binomial regression, which can fail to converge.

The intuition behind the method

With a binary outcome (event or no event), logistic regression returns odds ratios, while many clinical and public health readers prefer risk ratios, which are easier to interpret when the outcome is common. Log-binomial regression models risk ratios directly, but its fitting procedure has to keep fitted probabilities at or below 1, and this constraint can be where estimation breaks down. Robust Poisson regression avoids that boundary constraint by fitting a log-linear mean model with the Poisson likelihood, which is the standard GLM machinery. Because a log-linear mean can still predict values above 1 for some covariate patterns, the fitted probabilities must be checked after estimation. The Poisson variance is wrong for binary data, so the standard errors are replaced with sandwich estimates. The exponentiated coefficients are read as risk ratios.

History

Zou (2004) proposed Poisson regression with a robust error variance as a modified Poisson approach for estimating relative risk directly in prospective studies with binary data, published in the American Journal of Epidemiology. The paper justified the approach with a 2-by-2 table, reported a limited simulation study with total sample sizes as small as 100, and illustrated the method with two data sets. The method has since been used widely in epidemiology and clinical research as an alternative to log-binomial regression.

When to use it

Use robust Poisson regression when the outcome is binary, the target effect measure is a risk ratio rather than an odds ratio, and the data come from a cross-sectional or prospective design. If follow-up time varies or outcomes are censored, a binary risk model is not the right frame, and a model for rates or time at risk is needed instead. It is a reasonable choice when log-binomial regression fails to converge. Log-binomial fits can fail because the fitted probabilities must stay within [0,1], a constraint that becomes binding more readily when the outcome is common. Do not use it when the outcome is a count of events per unit of time or exposure; standard Poisson or negative binomial regression is then the appropriate model. When the outcome is rare, odds ratios from logistic regression approximate risk ratios closely, so logistic regression is usually adequate and avoids the deliberate misspecification. The validity of the sandwich-based inference rests on independent observations (use cluster-robust standard errors or GEE otherwise), a correctly specified log-linear model for the probability of the event, and correct functional form for continuous covariates. Check the fitted probabilities after estimation, because if many of them fall outside [0,1] the log-linear mean model does not describe the data well over the covariate range.

Limitations and considerations

  • The likelihood is deliberately misspecified for binary data, so likelihood-ratio tests and AIC do not have their usual meaning here; inference relies on Wald tests with sandwich standard errors.
  • Nothing in the log-linear mean model stops fitted probabilities from exceeding 1 for some covariate patterns, and in those regions the estimated risk ratios are not meaningful.
  • When the binary data follow a log-binomial model, the robust Poisson estimator is less efficient than the correctly specified model.
  • The original evaluation (Zou, 2004) rested on a 2-by-2 table justification, a limited simulation study with total sample sizes as small as 100, and two data sets, so performance under many covariates, sparse data or many fitted probabilities above 1 is not established by that evidence.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Gives risk ratios directly, so the coefficients can be exponentiated and reported without the conversion needed for logistic odds ratios.
  • Fits with the standard IRLS routine used for other GLMs, and avoids the parameter-space constraint that causes log-binomial fits to fail.
  • The sandwich variance keeps the Wald standard errors valid when the Poisson variance function is wrong for binary data.
  • Familiar to epidemiological and clinical readers, who can interpret the output as risk ratios.
  • Extends to clustered or longitudinal data through GEE with a Poisson family, log link and robust standard errors.

Applications

  • Estimating prevalence ratios in cross-sectional epidemiological surveys.
  • Reporting relative risks in randomized controlled trials with common binary outcomes.
  • Cohort studies examining incidence of disease where risk ratios are the target estimand.
  • Health services research quantifying relative utilization differences across demographic groups.

How it works

How it works

1

The mean of the binary outcome is modelled on the log scale, so the linear predictor gives the log of the event probability. The Poisson variance function does not match a Bernoulli outcome, but the coefficients target the log risk, which is the quantity of interest. Zou (2004) justified this for estimating relative risk in prospective studies.

Formula
\log(\mu_i) = \mathbf{x}_i^\top \boldsymbol{\beta}
2

The coefficients are estimated by maximising the Poisson log-likelihood with iteratively reweighted least squares (IRLS), the standard fitting routine for generalised linear models. The log link keeps fitted means positive, but it does not stop them from exceeding 1, so fitted probabilities must be checked after estimation.

Formula
L(\boldsymbol{\beta}) = \prod_{i=1}^{n} \frac{e^{-\mu_i} \mu_i^{y_i}}{y_i!}
3

The model-based variance, which assumes Poisson variance, is replaced by a Huber-White sandwich estimator. The bread is the inverse of X^T W X evaluated at the IRLS solution, with W the IRLS weights. The meat sums, over observations, the outer products of the covariate vectors weighted by the squared residual ε̂_i, the residual of observation i from the fitted mean model. The estimator remains consistent for the covariance of the coefficients when the variance assumption is wrong, provided the mean model is correct.

Formula
\widehat{\mathrm{Var}}(\hat{\boldsymbol{\beta}}) = (X^\top W X)^{-1} \left(\sum_i x_i x_i^\top \hat{\varepsilon}_i^2\right) (X^\top W X)^{-1}
4

The exponentiated coefficient exp(β_j) is read as the multiplicative change in the probability of the event for a one-unit increase in predictor x_j, holding the other covariates fixed. For a binary exposure this is a risk ratio. Under logistic regression the same transformation gives an odds ratio, which diverges from the risk ratio as the outcome becomes more common.

Formula
\widehat{RR} = e^{\hat{\beta}_j}

Common pitfalls

  • Fitting the model without requesting sandwich (robust) standard errors. The model-based standard errors are wrong for binary data, so the confidence intervals and p-values are invalid.
  • Reporting the exponentiated coefficients as incidence rate ratios, as one would for a count outcome. For a binary outcome the correct interpretation is a risk ratio.
  • Ignoring fitted probabilities above 1. When they are common, the log link is not describing the data over their range; revisit the model or use logistic regression.
  • Comparing candidate models with AIC or likelihood-ratio tests. These are not valid under the deliberate misspecification of the Poisson likelihood.

Frequently asked questions

Why not just use logistic regression and convert odds ratios to risk ratios?

Conversion formulas exist, but they require knowing the baseline risk and add uncertainty. When the outcome is common, odds ratios overstate risk ratios substantially, so the conversion becomes unreliable. Robust Poisson regression estimates risk ratios directly without this approximation.

How do I request robust standard errors in practice?

In R, fit the model with glm() using family=poisson(link='log'), then compute the sandwich covariance with sandwich::vcovHC() or apply coeftest() from the lmtest package. The glmRob() function in the robust package can also fit robust Poisson regression. In Stata, add the vce(robust) option to the poisson command.

What if fitted probabilities exceed 1?

This means the log-linear model predicts probabilities above 1 for some covariate combinations. Check the range of predicted values with fitted(model). If many exceed 1, consider log-binomial regression, logistic regression, or restricting the range of the covariates.

Can I use this method with clustered data?

Yes. Specify cluster-robust standard errors (the clustered sandwich estimator), or use generalized estimating equations (GEE) with a Poisson family, log link, and a working independence or exchangeable correlation structure, requesting robust standard errors.

Is robust Poisson appropriate for rare outcomes?

When the outcome is rare, the odds ratio approximates the risk ratio closely, so logistic regression is usually sufficient and avoids the misspecification concerns of robust Poisson. The method is most useful when the outcome is common.

Related methods

Sources

  1. Zou, G. (2004). A modified Poisson regression approach to prospective studies with binary data. American Journal of Epidemiology, 159(7), 702-706.

    Open DOI reference
  2. Zou, G. Y., & Donner, A. (2013). Extension of the modified Poisson regression model to prospective studies with binary data: why it is simpler than it sounds. Journal of Clinical Epidemiology, 66(9), 1023-1028.

    Open publication reference
  3. R in Action: Data Analysis and Graphics with R, 2nd Edition, p. 318