new.yogiroc | R Documentation |
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.
new.yogiroc(truth, scores)
truth |
a boolean vector for the ground truth classification |
scores |
the scores to be evaluated agains the ground truth |
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.
A new yogiroc object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.