IDEAS home Printed from https://ideas.repec.org/a/spr/testjl/v33y2024i2d10.1007_s11749-023-00912-8.html
   My bibliography  Save this article

A generalized Hosmer–Lemeshow goodness-of-fit test for a family of generalized linear models

Author

Listed:
  • Nikola Surjanovic

    (University of British Columbia)

  • Richard A. Lockhart

    (Simon Fraser University)

  • Thomas M. Loughin

    (Simon Fraser University)

Abstract

Generalized linear models (GLMs) are very widely used, but formal goodness-of-fit (GOF) tests for the overall fit of the model seem to be in wide use only for certain classes of GLMs. We develop and apply a new goodness-of-fit test, similar to the well-known and commonly used Hosmer–Lemeshow (HL) test, that can be used with a wide variety of GLMs. The test statistic is a variant of the HL statistic, but we rigorously derive an asymptotically correct sampling distribution using methods of Stute and Zhu (Scand J Stat 29(3):535–545, 2002) and demonstrate its consistency. We compare the performance of our new test with other GOF tests for GLMs, including a naive direct application of the HL test to the Poisson problem. Our test provides competitive or comparable power in various simulation settings and we identify a situation where a naive version of the test fails to hold its size. Our generalized HL test is straightforward to implement and interpret and an R package is publicly available.

Suggested Citation

  • Nikola Surjanovic & Richard A. Lockhart & Thomas M. Loughin, 2024. "A generalized Hosmer–Lemeshow goodness-of-fit test for a family of generalized linear models," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 33(2), pages 589-608, June.
  • Handle: RePEc:spr:testjl:v:33:y:2024:i:2:d:10.1007_s11749-023-00912-8
    DOI: 10.1007/s11749-023-00912-8
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s11749-023-00912-8
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s11749-023-00912-8?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Wenceslao González-Manteiga & Rosa Crujeiras, 2013. "Rejoinder on: An updated review of Goodness-of-Fit tests for regression models," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 22(3), pages 442-447, September.
    2. Wenceslao González-Manteiga & Rosa Crujeiras, 2013. "An updated review of Goodness-of-Fit tests for regression models," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 22(3), pages 361-411, September.
    3. D. Y. Lin & L. J. Wei & Z. Ying, 2002. "Model-Checking Techniques Based on Cumulative Residuals," Biometrics, The International Biometric Society, vol. 58(1), pages 1-12, March.
    4. Winfried Stute & Li‐Xing Zhu, 2002. "Model Checks for Generalized Linear Models," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 29(3), pages 535-545, September.
    5. Ronald Christensen & Yong Lin, 2015. "Lack-of-fit Tests Based On Partial Sums of Residuals," Communications in Statistics - Theory and Methods, Taylor & Francis Journals, vol. 44(13), pages 2862-2880, July.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Simos G. Meintanis & Joseph Ngatchou-Wandji & Leonard Santana & Marius Smuts, 2025. "Goodness-of-fit tests for discrete response models with covariates," Statistical Papers, Springer, vol. 66(3), pages 1-36, April.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Sun, Zhihua & Chen, Feifei & Zhou, Xiaohua & Zhang, Qingzhao, 2017. "Improved model checking methods for parametric models with responses missing at random," Journal of Multivariate Analysis, Elsevier, vol. 154(C), pages 147-161.
    2. Xu Guo & Wangli Xu & Lixing Zhu, 2015. "Model checking for parametric regressions with response missing at random," Annals of the Institute of Statistical Mathematics, Springer;The Institute of Statistical Mathematics, vol. 67(2), pages 229-259, April.
    3. Colling, Benjamin & Van Keilegom, Ingrid, 2016. "Goodness-of-fit tests in semiparametric transformation models using the integrated regression function," LIDAM Discussion Papers ISBA 2016031, Université catholique de Louvain, Institute of Statistics, Biostatistics and Actuarial Sciences (ISBA).
    4. Cuizhen Niu & Lixing Zhu, 2018. "A robust adaptive-to-model enhancement test for parametric single-index models," Annals of the Institute of Statistical Mathematics, Springer;The Institute of Statistical Mathematics, vol. 70(5), pages 1013-1045, October.
    5. Kloodt, Nick & Neumeyer, Natalie, 2020. "Specification tests in semiparametric transformation models — A multiplier bootstrap approach," Computational Statistics & Data Analysis, Elsevier, vol. 145(C).
    6. Colling, Benjamin & Van Keilegom, Ingrid, 2017. "Goodness-of-fit tests in semiparametric transformation models using the integrated regression function," Journal of Multivariate Analysis, Elsevier, vol. 160(C), pages 10-30.
    7. Sant’Anna, Pedro H.C. & Song, Xiaojun, 2019. "Specification tests for the propensity score," Journal of Econometrics, Elsevier, vol. 210(2), pages 379-404.
    8. Sun, Shuang & Song, Zening & Song, Xiaojun, 2025. "Unified specification tests in partially linear time series models," Computational Statistics & Data Analysis, Elsevier, vol. 203(C).
    9. Pedro H. C. Sant'Anna & Xiaojun Song & Qi Xu, 2022. "Covariate distribution balance via propensity scores," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(6), pages 1093-1120, September.
    10. Adam D. Bull, 2015. "Semimartingale detection and goodness-of-fit tests," Papers 1506.00088, arXiv.org, revised Jun 2016.
    11. Xu Guo & Gao-Rong Li & Michael McAleer & Wing-Keung Wong, 2018. "Specification Testing of Production in a Stochastic Frontier Model," Sustainability, MDPI, vol. 10(9), pages 1-10, August.
    12. Enno Mammen & Jens Perch Nielsen & Michael Scholz & Stefan Sperlich, 2019. "Conditional Variance Forecasts for Long-Term Stock Returns," Risks, MDPI, vol. 7(4), pages 1-22, November.
    13. José María Sarabia & Faustino Prieto & Vanesa Jordá & Stefan Sperlich, 2020. "A Note on Combining Machine Learning with Statistical Modeling for Financial Data Analysis," Risks, MDPI, vol. 8(2), pages 1-14, April.
    14. Stute, W. & Presedo Quindimil, M. & González Manteiga, W. & Koul, H.L., 2006. "Model checks of higher order time series," Statistics & Probability Letters, Elsevier, vol. 76(13), pages 1385-1396, July.
    15. Eduardo García‐Portugués & Javier Álvarez‐Liébana & Gonzalo Álvarez‐Pérez & Wenceslao González‐Manteiga, 2021. "A goodness‐of‐fit test for the functional linear model with functional response," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 48(2), pages 502-528, June.
    16. A. Meilán-Vila & R. Fernández-Casal & R. M. Crujeiras & M. Francisco-Fernández, 2021. "A computational validation for nonparametric assessment of spatial trends," Computational Statistics, Springer, vol. 36(4), pages 2939-2965, December.
    17. Junmin Liu & Deli Zhu & Luoyao Yu & Xuehu Zhu, 2023. "Specification testing of partially linear single-index models: a groupwise dimension reduction-based adaptive-to-model approach," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 32(1), pages 232-262, March.
    18. Di Leo, Senatro & Caramuta, Pietro & Curci, Paola & Cosmi, Carmelina, 2020. "Regression analysis for energy demand projection: An application to TIMES-Basilicata and TIMES-Italy energy models," Energy, Elsevier, vol. 196(C).
    19. G. I. Rivas-Martínez & M. D. Jiménez-Gamero & J. L. Moreno-Rebollo, 2019. "A two-sample test for the error distribution in nonparametric regression based on the characteristic function," Statistical Papers, Springer, vol. 60(4), pages 1369-1395, August.
    20. Guo, Xu & Song, Lianlian & Fang, Yun & Zhu, Lixing, 2019. "Model checking for general linear regression with nonignorable missing response," Computational Statistics & Data Analysis, Elsevier, vol. 138(C), pages 1-12.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:testjl:v:33:y:2024:i:2:d:10.1007_s11749-023-00912-8. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.