Calculate Receiver Operating Characteristic (ROC) curve's each performance set of [sensitivity, 1-specificity], each distance of the performance from the worst performance [0, 1], and each piece of area under the curve, for each cutoff point, as list.
Usage
roc(values, iscase)
Arguments
values
A numeric vector of measured values.
iscase
A logical (or 0/1) vector of diagnostics. Negative result must be given by FALSE or 0.
Value
cutoff
The numeric vector of cutoff points, which are composed of the all unique values among the given measurements and the maximum cutoff is maximum measurement plus 1. Therefore, the minimum cutoff gives [1, 1] and the maximum cutoff gives [0, 0] as the performance set of [sensitivity, 1-specificity], respectively.
sens
The numeric vector of sensitivities for all cutoff points.
falsepos
The numeric vector of 1-specificities (false positiveness) for all cutoff points.
distance
The numeric vector of distance between actual performance set and the worst performance.
aucpiece
The numeric vector of the pieces of areas under the curve.