Learn R Programming

blorr (version 0.1.0)

blr_test_hosmer_lemeshow: Hosmer lemeshow test

Description

Hosmer lemeshow goodness of fit test.

Usage

blr_test_hosmer_lemeshow(model, data = NULL)

Arguments

model

An object of class glm.

data

a tibble or data.frame.

References

Hosmer, D.W., Jr., & Lemeshow, S. (2000), Applied logistic regression(2nd ed.). New York: John Wiley & Sons.

See Also

Other model validation techniques: blr_confusion_matrix, blr_decile_capture_rate, blr_decile_lift_chart, blr_gains_table, blr_gini_index, blr_ks_chart, blr_lorenz_curve, blr_roc_curve

Examples

Run this code
# NOT RUN {
model <- glm(honcomp ~ female + read + science, data = hsb2,
             family = binomial(link = 'logit'))

blr_test_hosmer_lemeshow(model)

# }

Run the code above in your browser using DataLab