hosmerlem: Hosmer-Lemeshow goodness-of-fit for logistic regression model
Description
Computes the chi-squared statistic based on groups for a logistic regression fit from glm. The observations are gouped according to the ranked order of the project risks.
Usage
hosmerlem(f,fit,data,groups=10)
Arguments
f
formula given to glm
fit
glm object from logistic regression fit
data
data frame containing the variables of f
groups
scalar number of groups to bin for the observed - expected deviations