Why Exposure Belongs in the Count Model
Counts collected over different observation periods or areas are not directly comparable. A count of four events over two days and a count of four events over ten days provide different information about the underlying rate. A log-exposure offset lets a count model represent this difference while imposing a specific assumption: holding other predictors fixed, the count-component mean is proportional to exposure.
In a zero-inflated model, the observed count can be zero either because an observation belongs to a zero-generating class or because the count distribution itself produces zero. In a hurdle model, a binary process determines whether the count is zero, and a zero-truncated count distribution generates positive values. An exposure offset belongs in the count-rate component of either model. Its implications for the expected observed count, however, differ between the two mechanisms.
The rate interpretation requires a substantive assumption: the count-component mean changes proportionally with exposure when the other predictors and relevant latent effects are held fixed. Exposure must be positive for \(\log(E_i)\) to be defined, and the unit of exposure must be chosen and reported. An offset is not simply another covariate: it does not ask the data to estimate an exposure slope.
Zero-Inflated Models: The Observed Mean
Write \(\pi_i\) for the probability that observation \(i\) belongs to the extra-zero class. With probability \(1-\pi_i\), its count follows a distribution with mean \(\mu_i\), such as a Poisson or negative-binomial distribution. Thus, for a nonnegative count \(Y_i\), the model assumptions imply
The second equality follows because the extra-zero class contributes zero to the mean, while the count-generating class contributes mean \(\mu_i\). If \(\pi_i\) is held fixed and \(\mu_i=E_i\lambda_i\), then the observed mean is \((1-\pi_i)E_i\lambda_i\). Under those conditions, multiplying exposure by a factor multiplies the expected observed count by the same factor. If \(\pi_i\) also changes with exposure, that proportionality need not hold for the observed mean.
Worked Example: Exposure in a Zero-Inflated Poisson Model
Suppose a hypothetical zero-inflated Poisson model has an extra-zero probability \(\pi=0.25\) and a count-component rate of \(\lambda=0.40\) events per observation-day. Compare expected observed counts for exposures of \(E=2\) and \(E=5\) days. Assume the extra-zero probability and rate are otherwise unchanged.
The count-component mean is \(\mu=E\lambda\). At two days, \(\mu=2(0.40)=0.80\) events; at five days, \(\mu=5(0.40)=2.00\) events. The expected observed count is \((1-\pi)\mu\), so the calculations are
The exposure ratio is \(5/2=2.5\), and the expected observed-count ratio is \(1.50/0.600=2.5\), as required when \(\pi\) is fixed. The observed zero probability is not just \(\pi\), because the count component can also generate zero. For example, at two days it is \(0.25+0.75e^{-0.80}=0.587\) (approximately). The exposure offset changes the count-component mean; it does not, by itself, change \(\pi\).
Hurdle Models: Truncation Changes the Exposure Effect
In a hurdle model, let \(q_i=P(Y_i>0)\) be the probability of crossing the hurdle. Conditional on being positive, \(Y_i\) follows the count distribution with its zero removed. If the untruncated count distribution has probability mass function \(f(y;\mu_i)\), then for \(y=1,2,\ldots\),
The denominator normalizes the positive values to sum to one. The mean of the positive, truncated distribution is \(\mu_i/[1-f(0;\mu_i)]\): the untruncated mean is the sum of \(y f(y;\mu_i)\), and removing the zero leaves that numerator unchanged while conditioning divides by \(1-f(0;\mu_i)\). Consequently,
This expression is the key distinction from a zero-inflated model. Even when \(q_i\) is fixed and the offset makes \(\mu_i\) proportional to exposure, the truncation factor \(1-f(0;\mu_i)\) also changes with exposure. Therefore the expected observed hurdle count is generally a nonlinear function of exposure, not a quantity that necessarily scales in direct proportion to it.
Worked Example: A Poisson Hurdle at Two Exposure Levels
Consider a hypothetical Poisson hurdle model with positive-count probability \(q=0.60\) and count-component rate \(\lambda=0.50\) events per observation-day. Compare one and four days of exposure, holding \(q\) and \(\lambda\) fixed. For a Poisson distribution, \(f(0;\mu)=e^{-\mu}\), so the expected hurdle count is \(q\mu/(1-e^{-\mu})\).
At one day, \(\mu=1(0.50)=0.50\). Since \(1-e^{-0.50}=0.393469\), the conditional positive-count mean is \(0.50/0.393469=1.2707\) events. The observed mean is
At four days, \(\mu=4(0.50)=2.00\), and \(1-e^{-2}=0.864665\). Thus
Exposure increased fourfold, but the expected observed count increased by \(1.388/0.7624=1.82\), not fourfold. The count-component mean did increase fourfold, from 0.50 to 2.00. The difference arises because the zero-truncated conditional mean changes with \(\mu\). This calculation assumes \(q\) stays fixed; a separate model for \(q_i\) could include exposure or other predictors if scientifically justified.
Negative-Binomial Hurdle Example
The same distinction applies when the count component is negative binomial. Under the common NB2 parameterization, the untruncated count has mean \(\mu_i\), variance \(\mu_i+\alpha\mu_i^2\), and zero probability \(f(0;\mu_i)=(1+\alpha\mu_i)^{-1/\alpha}\), where \(\alpha>0\) is the dispersion parameter. Substituting this zero probability into the hurdle mean gives \(q_i\mu_i/[1-(1+\alpha\mu_i)^{-1/\alpha}]\).
Worked Example: Negative-Binomial Hurdle Counts
Suppose a hypothetical negative-binomial hurdle model has \(q=0.50\), dispersion \(\alpha=0.50\), and rate \(\lambda=0.40\) events per observation-day. Compare exposures of one and three days, with \(q\), \(\alpha\), and \(\lambda\) fixed.
For one day, \(\mu=0.40\), and the zero probability is \((1+0.50(0.40))^{-1/0.50}=1.20^{-2}=0.694444\). The conditional positive mean and observed mean are
For three days, \(\mu=3(0.40)=1.20\), and the zero probability is \((1+0.50(1.20))^{-2}=1.60^{-2}=0.390625\). Therefore,
The count-component mean triples, but the expected observed count changes by a factor of \(0.9846/0.6545=1.50\). This is not a contradiction: the hurdle mean includes a zero-truncation adjustment that varies with \(\mu\).
Offsets in a Mixed Model and Their Assumptions
In a GLMM, the offset is used in the conditional count-component linear predictor. For example, with random effects \(b_i\), one may specify \(\log(\mu_i\mid b_i)=\log(E_i)+x_i^\mathsf{T}\beta+z_i^\mathsf{T}b_i\). This states that, conditional on the random effects, the count-component mean is proportional to exposure. The zero-inflation probability \(\pi_i\), or the hurdle probability \(q_i\), is a separate model component. It can have its own predictors and random effects, but the count-component offset does not automatically place an offset in that component.
If the random-effects distribution is stable across exposure values, and the zero-inflation probability does not depend on exposure, the marginal zero-inflated expected count also scales proportionally: exposure factors out of the expectation over the random effects. In a hurdle model, the marginal expected count instead averages \(q_i\mu_i/[1-f(0;\mu_i)]\) over the random effects; because of the truncation term, it is generally not proportional to exposure. This conditional-versus-marginal distinction matters when interpreting rates from a mixed model.
An offset is appropriate when exposure measures the opportunity for events and the rate is assumed constant over the recorded exposure, conditional on predictors and latent effects. It may be inappropriate when exposure is measured with substantial error, when the event rate changes over the exposure period, or when exposure is related to unmodeled risk in a way not captured by the model. If \(E_i=0\), \(\log(E_i)\) is undefined; such an observation needs a design-based or scientific treatment rather than a mechanically applied log offset.
Checking the Specification and Comparing Alternatives
A fixed offset makes a substantive constraint, not merely a numerical adjustment. Several checks help assess whether that constraint and the mixture model are plausible:
- Confirm that exposure is positive, correctly measured, and expressed in consistent units. A change from days to hours changes the intercept needed to describe the same fitted means.
- Check whether the event rate appears stable across exposure levels after accounting for model predictors. A systematic pattern in residuals or observed-versus-fitted counts can signal a poor rate assumption, though noisy raw rates at small exposures are not decisive on their own.
- Assess fit to both the zero frequency and the positive-count distribution. Excess zeros alone do not identify which mixture mechanism generated them.
- Consider whether exposure should also predict \(\pi_i\) or \(q_i\). If it should, that effect must be specified in the corresponding binary component rather than presumed to follow from the count offset.
- For a GLMM, check whether group-level heterogeneity or dependence is represented adequately; an offset does not correct omitted random effects or correlation.
One alternative is to estimate an exposure coefficient \(\gamma\) in \(\log(\mu_i)=\gamma\log(E_i)+x_i^\mathsf{T}\beta\). This relaxes proportionality in the count component, but it estimates a different model and requires sufficient information across exposure values. In a zero-inflated model with fixed \(\pi_i\), the observed mean then scales as \(E_i^\gamma\). In a hurdle model, the count-component mean scales as \(E_i^\gamma\), while the observed mean generally does not, because its truncation factor changes with \(\mu_i\). Modeling a rate by dividing counts by exposure and treating the result as an ordinary response is not generally equivalent to a count model with an offset; it can also mishandle the count distribution and its variance.
Common Pitfall
The practical consequence is that an offset has a clear, common interpretation at the count-component level, but observed-count comparisons must use the model’s full mixture expectation. Reporting only the rate or the count-component mean can be incomplete when the scientific question concerns actual recorded counts.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- A zero-inflated Poisson model has \(\pi=0.20\), count-component rate \(0.30\) events per day, and exposure changes from two to six days. Calculate both expected observed counts and their ratio.
- In a hurdle model with fixed \(q_i\), why does an exposure offset not generally make the observed expected count proportional to exposure?
- A negative-binomial hurdle model has \(\mu=1\), \(\alpha=1\), and \(q=0.40\). Calculate its expected observed count using the NB2 zero probability.
- If exposure is recorded in hours instead of days, how can the intercept change while fitted count-component means remain the same?
Solutions. (1) At two days, \(\mu=0.30(2)=0.60\), so \(E(Y)=0.80(0.60)=0.480\) events. At six days, \(\mu=1.80\), so \(E(Y)=0.80(1.80)=1.44\) events. The ratio is \(1.44/0.480=3\), equal to the exposure ratio because \(\pi\) is fixed. (2) The hurdle expectation is \(q_i\mu_i/[1-f(0;\mu_i)]\). Although the offset makes \(\mu_i\) proportional to exposure, \(f(0;\mu_i)\) also changes, so the full expectation generally does not scale proportionally. (3) Here \(f(0;1)=(1+1(1))^{-1}=0.50\). Thus \(E(Y)=0.40(1)/(1-0.50)=0.800\) events. (4) Since \(E_{\text{hours}}=24E_{\text{days}}\), the intercept for hours must be the days-based intercept minus \(\log(24)\): the added \(\log(24)\) in the offset is canceled, preserving \(\log(\mu_i)\).