How to use this calculator
Fit a log-linear Poisson rate with one predictor while accounting for unequal observation exposure through a log offset.
- Enter Predictor values, Observed counts, Exposure by observation. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Poisson rate regression with exposure offset explained
A numerical walkthrough
Predictor values = 0,1,2,3,4,5; Observed counts = 2,3,5,6,11,13; Exposure by observation = 10,10,12,10,15,12.
- Fitted slope: 0.32119538 per predictor unit
- Fitted intercept: -1.54122149
- Rate ratio per unit: 1.37877494
- Slope standard error: 0.10612966
- Wald two-sided p-value: 0.00247449
The third and fifth rows have longer exposures than the first. The offset compares event rates rather than attributing all count increases to the predictor.
The model behind the numbers
E(Yi)=ti·exp(β0+β1xi); log(ti) is a fixed offset with coefficient one.
Safeguarded Newton iterations estimate an intercept and slope. Exposure changes the expected count without becoming an estimated predictor. The fitted slope is returned per original x unit, and model-based information provides its standard error.
What to enter
x— Predictor values- Ordered values in the role named above. Match row positions with other lists and use a consistent measurement unit within the same variable. Use comma-separated values in the stated order.
y— Observed counts- Whole event counts per row; zero is valid but at least one event overall is required. Use comma-separated values in the stated order.
t— Exposure by observation- Positive known exposure per row in one common unit. Its logarithm enters as an offset, not a fitted coefficient. Use comma-separated values in the stated order.
Interpreting the result
Independent Poisson counts with positive exposure and variance equal to the model mean. Zero counts are allowed but at least one event is needed. Overdispersion, excess zeros, and exposure measurement error are outside this model.
Reading the outputs
exp(slope) is the event-rate multiplier for one predictor-unit increase at the same exposure. The intercept is the log rate at x=0.
Frequently asked questions
Can exposures be different durations?
Yes. Use one consistent exposure unit for every row.
Is exposure another fitted coefficient?
No. Its logarithm is a fixed offset.
What if counts are overdispersed?
The displayed Poisson standard errors can be too small; a different variance or count model may be needed.
How do I use the Poisson rate regression with exposure offset calculator?
Enter Predictor values, Observed counts, Exposure by observation. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Poisson rate regression with exposure offset?
Predictor values = 0,1,2,3,4,5; Observed counts = 2,3,5,6,11,13; Exposure by observation = 10,10,12,10,15,12. Fitted slope: 0.32119538 per predictor unit Fitted intercept: -1.54122149 Rate ratio per unit: 1.37877494 Slope standard error: 0.10612966 Wald two-sided p-value: 0.00247449 The third and fifth rows have longer exposures than the first. The offset compares event rates rather than attributing all count increases to the predictor.
Method reference: Statsmodels generalized linear models.
Read our calculation methodology.