linktest
Linktest is a statistical diagnostic method used in generalized linear models, most commonly after logistic regression, to assess model specification and the appropriateness of the chosen link function. The idea is to examine whether the fitted linear predictor from the model sufficiently captures the relationship between predictors and the outcome, or whether there are nonlinearities or interactions that the model has failed to incorporate.
In practice, after fitting a model, the method uses the linear predictor η = Xβ (the predicted logit
Linktest is implemented in various statistical software packages, sometimes under specific commands (for example, as a