cambiotraining / stats-glm

https://cambiotraining.github.io/stats-glm/
Other
1 stars 1 forks source link

performance::check_overdispersion() inconsistent #2

Closed mvanrongen closed 5 months ago

mvanrongen commented 5 months ago

When running check_overdispersion(glm_gal) the outcome is different to manually calculating the dispersion parameter using glm_gal$deviance / glm_gal$df.residual.

mvanrongen commented 5 months ago

Uses a slightly different method than dividing the deviance by the residual degrees of freedom. Instead, it's based on Gelman, A., and Hill, J. (2007). Data analysis using regression and multilevel/hierarchical models. Cambridge; New York: Cambridge University Press.

Reproducible outcome when manually calculating using the same method, so verified.