powered by
Confusion matrix and statistics.
blr_confusion_matrix(model, cutoff = 0.5, data = NULL, ...)# S3 method for default blr_confusion_matrix(model, cutoff = 0.5, data = NULL, ...)
# S3 method for default blr_confusion_matrix(model, cutoff = 0.5, data = NULL, ...)
An object of class glm.
glm
Cutoff for classification.
A tibble or a data.frame.
tibble
data.frame
Other arguments.
Confusion matix.
Other model validation techniques: blr_decile_capture_rate(), blr_decile_lift_chart(), blr_gains_table(), blr_gini_index(), blr_ks_chart(), blr_lorenz_curve(), blr_roc_curve(), blr_test_hosmer_lemeshow()
blr_decile_capture_rate()
blr_decile_lift_chart()
blr_gains_table()
blr_gini_index()
blr_ks_chart()
blr_lorenz_curve()
blr_roc_curve()
blr_test_hosmer_lemeshow()
# NOT RUN { model <- glm(honcomp ~ female + read + science, data = hsb2, family = binomial(link = 'logit')) blr_confusion_matrix(model, cutoff = 0.4) # }
Run the code above in your browser using DataLab