Data for generating ROC curve.

blr_prep_roc_data(gains_table)

Arguments

gains_table

An object of clas blr_gains_table

Examples

model <- glm(honcomp ~ female + read + science, data = hsb2, family = binomial(link = 'logit')) gt <- blr_gains_table(model) blr_prep_roc_data(gt)
#> # A tibble: 11 x 4 #> sensitivity specificity sensitivity_per `1 - specificity` #> <dbl> <dbl> <dbl> <dbl> #> 1 NA NA 0 0 #> 2 26.4 95.9 0.264 0.0408 #> 3 50.9 91.2 0.509 0.0884 #> 4 69.8 84.4 0.698 0.156 #> 5 83.0 75.5 0.830 0.245 #> 6 88.7 63.9 0.887 0.361 #> 7 94.3 52.4 0.943 0.476 #> 8 96.2 39.5 0.962 0.605 #> 9 100 27.2 1 0.728 #> 10 100 13.6 1 0.864 #> 11 100 0 1 1