Get access

Testing goodness of fit in regression: a general approach for specified alternatives

Authors

  • Aldo Solari,

    Corresponding author
    • Department of Statistics, University of Milano-Bicocca, Milan, Italy
    Search for more papers by this author
  • Saskia le Cessie,

    1. Department of Clinical Epidemiology, Leiden University Medical Center, RC, Leiden, The Netherlands
    2. Department of Medical Statistics and Bioinformatics, Leiden University Medical Center, RC, Leiden, The Netherlands
    Search for more papers by this author
  • Jelle J. Goeman

    1. Department of Medical Statistics and Bioinformatics, Leiden University Medical Center, RC, Leiden, The Netherlands
    Search for more papers by this author

Aldo Solari, Department of Statistics, University of Milano-Bicocca, via Bicocca degli Arcimboldi 8, 20126 Milan, Italy.

E-mail: aldo.solari@unimib.it

Abstract

When fitting generalized linear models or the Cox proportional hazards model, it is important to have tools to test for lack of fit. Because lack of fit comes in all shapes and sizes, distinguishing among different types of lack of fit is of practical importance. We argue that an adequate diagnosis of lack of fit requires a specified alternative model. Such specification identifies the type of lack of fit the test is directed against so that if we reject the null hypothesis, we know the direction of the departure from the model. The goodness-of-fit approach of this paper allows to treat different types of lack of fit within a unified general framework and to consider many existing tests as special cases. Connections with penalized likelihood and random effects are discussed, and the application of the proposed approach is illustrated with medical examples. Tailored functions for goodness-of-fit testing have been implemented in the R package globaltest. Copyright © 2012 John Wiley & Sons, Ltd.

Ancillary