roc {cutoff}R Documentation

To Get the Best Cutoff Value for ROC Curve

Description

Youden index is used for seeking the best cutoff value for ROC Curve.

Usage

roc(score, class)

Arguments

score

continuous value

class

bianary value, 0 and 1

Value

If the auc of a variate is lower than 0.5, we treat it as negative classification and return information about the negative prediction. Otherwise, The variate will be treated as positive one.

Examples

roc(score = mtcars$qsec,class = mtcars$am)
roc(score = mtcars$drat,class = mtcars$am)

[Package cutoff version 1.3 Index]