Fits a Poisson log-linear trend by iteratively reweighted least squares and reports the multiplicative change per period, which is what a count series' trend actually is. An offset carries the denominator when the exposure varies.
Value
A list with rate_ratio (per period), its interval,
p_value, the fitted values, the dispersion, and
overdispersed.
Details
The dispersion is reported because a Poisson fit assumes it is one. When
it is well above one the interval is too narrow, and the quasi-Poisson
interval – which scales the standard error by the square root of the
dispersion – is returned instead, with overdispersed set.
References
Bilder, C. R. and Loughin, T. M. Analysis of Categorical Data with
R, 2nd edn. Chapman and Hall/CRC, on the quasi-likelihood treatment of
an overdispersed Poisson fit: the variance is scaled by an estimated
dispersion, which widens the interval while leaving the point estimate
alone. That is the behaviour reported here through dispersion and
overdispersed.