de Andrade Moral, Rafael, Hinde, John and Garcia Borges Demétrio, Clarice (2017) Half-Normal Plots and Overdispersed Models in R: The hnp Package. Journal of Statistical Software, 81 (10). ISSN 1548-7660
Preview
RA-Half-Normal-2017.pdf
Download (642kB) | Preview
Abstract
Count and proportion data may present overdispersion, i.e., greater variability than expected by the Poisson and binomial models, respectively. Different extended generalized linear models that allow for overdispersion may be used to analyze this type of data, such as models that use a generalized variance function, random-effects models, zero-inflated models and compound distribution models. Assessing goodness-of-fit and verifying assumptions of these models is not an easy task and the use of half-normal plots with a simulated envelope is a possible solution for this problem. These plots are a useful indicator of goodness-of-fit that may be used with any generalized linear model and extensions. For GLIM users, functions that generated these plots were widely used, however, in the open-source software R, these functions were not yet available on the Comprehensive R Archive Network (CRAN). We describe a new package in R, hnp, that may be used to generate the half-normal plot with a simulated envelope for residuals from different types of models. The function hnp() can be used together with a range of different model fitting packages in R that extend the basic generalized linear model fitting in glm() and is written so that it is relatively easy to extend it to new model classes and different diagnostics. We illustrate its use on a range of examples, including continuous and discrete responses, and show how it can be used to inform model selection and diagnose overdispersion.
Item Type: | Article |
---|---|
Additional Information: | This work is licensed under the license: Creative Commons Attribution 3.0 Unported License https://creativecommons.org/licenses/by/3.0/ . Cite as: Moral, R., Hinde, J., & Demétrio, C. (2017). Half-Normal Plots and Overdispersed Models in R: The hnp Package. Journal of Statistical Software, 81(10), 1 - 23. doi:http://dx.doi.org/10.18637/jss.v081.i10 |
Keywords: | goodness-of-fit; generalized linear models; mixed models; |
Academic Unit: | Faculty of Science and Engineering > Mathematics and Statistics |
Item ID: | 9990 |
Identification Number: | 10.18637/jss.v081.i10 |
Depositing User: | Rafael de Andrade Moral |
Date Deposited: | 20 Sep 2018 16:10 |
Journal or Publication Title: | Journal of Statistical Software |
Publisher: | Foundation for Open Access Statistics |
Refereed: | Yes |
Related URLs: | |
URI: | https://mu.eprints-hosting.org/id/eprint/9990 |
Use Licence: | This item is available under a Creative Commons Attribution Non Commercial Share Alike Licence (CC BY-NC-SA). Details of this licence are available here |
Repository Staff Only (login required)
Downloads
Downloads per month over past year