For the Poisson variance function , the code computes the Pearson chi-squared statistic
and the Pearson dispersion estimator
The first quantity measures goodness of fit; the second estimates the dispersion parameter, which equals one in a correctly specified Poisson regression. A standard rough calculation substitutes the residual deviance for the Pearson statistic and gives
If the reported upper-tail probability is inverted numerically, the actual Pearson statistic used by the code is about , giving . Either calculation reveals severe overdispersion.
The quasi-Poisson standard errors are the Poisson standard errors multiplied by , and the Pearson estimator divides the Pearson chi-squared statistic by the residual degrees of freedom . Therefore the requested sum of squared Pearson residuals is
up to the rounding in the printed standard errors.