Learn R Programming

rtemis (version 0.79)

rtROC: 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 = getOption("rt.theme", "lightgrid"),
  verbose = TRUE)

Arguments

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