new.yogiroc: new yogiroc

View source: R/yogiroc.R

new.yogirocR Documentation

new yogiroc

Description

Warning: This class is now deprecated. Please use yr2 instead. This creates a new yogiroc object used to draw ROC and PRC curves and calculate the respective AUC.

Usage

new.yogiroc(truth, scores)

Arguments

truth

a boolean vector for the ground truth classification

scores

the scores to be evaluated agains the ground truth

Details

The object exposes the following methods:

  • draw.roc(col,main,lwd,add) Draws a ROC curve. Parameter "col" controls the line color, "main" sets the plot title, "lwd" sets the line width, "add" allows the plot to be added as a line to an existing plot.

  • draw.prc(col,main,lwd,add) Draws a PRC curve, Parameters as above.

  • auroc() Returns the Area under the ROC curve.

  • auprc() Returns the Area under the PRC curve.

Value

A new yogiroc object


jweile/yogiroc documentation built on Jan. 15, 2024, 2:47 a.m.