extract_rocdata | R Documentation |
Function reads ROC data from a performance
object.
Sensitivity and specificity are calculated
at incrementing class probability thresholds.
extract_rocdata(performance, invertprob = FALSE)
performance |
a |
invertprob |
boolean. Should class probabilities be inverted? If the ROC curve appears under the diagonal then toggle this option. |
Uses ROCR functions: prediction
, and
performance
a data.frame object of class "rocdata" which can be plotted. Contents:
Sens
: Sensitivity
InvSpec
: 1 - Specificity
alpha
: threshold
run
: label from performance
plot.rocdata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.