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.