Two goodness‐of‐fit tests for logistic regression models with continuous covariates

Abstract
Assessing goodness‐of‐fit in logistic regression models can be problematic, in that commonly used deviance or Pearson chi‐square statistics do not have approximate chi‐square distributions, under the null hypothesis of no lack of fit, when continuous covariates are modelled. We present two easy to implement test statistics similar to the deviance and Pearson chi‐square tests that are appropriate when continuous covariates are present. The methodology uses an approach similar to that incorporated by the Hosmer and Lemeshow goodness‐of‐fit test in that observations are classified into distinct groups according to fitted probabilities, allowing sufficient cell sizes for chi‐square testing. The major difference is that the proposed tests perform this grouping within the cross‐classification of all categorical covariates in the model and, in some situations, allow for a more powerful assessment of where model predicted and observed counts may differ. A variety of simulations are performed comparing the proposed tests to the Hosmer–Lemeshow test. Copyright © 2002 John Wiley & Sons, Ltd.