Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMore statistics for function thresholder #938
Conversation
Codecov Report
@@ Coverage Diff @@
## master #938 +/- ##
==========================================
- Coverage 19.54% 19.51% -0.03%
==========================================
Files 90 90
Lines 12077 12093 +16
==========================================
Hits 2360 2360
- Misses 9717 9733 +16
Continue to review full report at Codecov.
|
|
Thanks |
The function
thresholdercurrently computes Sensitivity, Specificity, Youden's J and the distance to the best possible cutoff. However, these may not be the metrics that the user wishes to compare models by.Internally,
thresholderusescaret::confusionMatrixwhich calculates a bunch of other statistics, but throws away all but those above. This pull request enables the user to choose which statistics to compute for each probability cutoff, the options being the same as those calculated incaret::confusionMatrix. The default option calculates all statistics fromcaret::confusionMatrix.