Calculates Stukels test for a logistic regression model.
This determines the appropriateness of the
logistic link.
Two new covariates, z1 and z2 are
generated such that $$z1=0.5*logit^2*I(pi>=0.5),
z2=-0.5*logit^2*I(pi
Usage
stukel(object,
alternative = c("both", "alpha1", "alpha2"))
Arguments
object
An object of class glm
alternative
add both $z1$ and $z2$ to
model or just one of the above