extract_rocdata: extract_rocdata

View source: R/dCVnet_roc.R

extract_rocdataR Documentation

extract_rocdata

Description

Function reads ROC data from a performance object. Sensitivity and specificity are calculated at incrementing class probability thresholds.

Usage

extract_rocdata(performance, invertprob = FALSE)

Arguments

performance

a performance object.

invertprob

boolean. Should class probabilities be inverted? If the ROC curve appears under the diagonal then toggle this option.

Details

Uses ROCR functions: prediction, and performance

Value

a data.frame object of class "rocdata" which can be plotted. Contents:

  • Sens : Sensitivity

  • InvSpec : 1 - Specificity

  • alpha : threshold

  • run : label from performance

See Also

plot.rocdata


AndrewLawrence/dCVnet documentation built on Sept. 24, 2024, 5:24 a.m.