rtROC: Build an ROC curve

View source: R/rtROC.R

rtROCR Documentation

Build an ROC curve

Description

Calculate the points of an ROC curve and the AUC

Usage

rtROC(
  true.labels,
  predicted.probabilities,
  thresholds = NULL,
  plot = FALSE,
  theme = rtTheme,
  verbose = TRUE
)

Arguments

true.labels

Factor with true labels

predicted.probabilities

Numeric vector of predicted probabilities / estimated score

thresholds

Numeric vector of thresholds to consider

plot

Logical: If TRUE, print plot

theme

rtemis theme to use

verbose

Logical: If TRUE, print messages to console

Details

true.labels should be a factor (will be coerced to one) where the first level is the "positive" case. predicted.probabilities should be a vector of floats 0, 1 where ⁠[0, .5)⁠ corresponds to the first level and ⁠[.5, 1]⁠ corresponds to the second level. predicted.probabilities

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Nov. 22, 2024, 4:12 a.m.