Estimate the area of region under ROC curve under pre-specific FPR/TPR constraints (two-way partial AUC). See http://arxiv.org/abs/1508.00298 for details.
a factor, numeric or character vector of responses;
typically encoded with 0 (negative) and 1 (positive).
Only two classes can be used in a ROC curve. If its levels are not 0 and 1,
the first level will be defaultly regarded as negative.
predictor
a numeric vector of the same length than response, containing the predicted value of each observation. An ordered factor is coerced to a numeric.
threshold
a length-two numeric vector; the first element is FPR threshold, the second is TPR.
smooth
if TRUE, the ROC curve is passed to smooth to be smoothed.
Value
Estimate of two-way partial AUC.
Details
This function estimates two-way partial AUC given response, predictor and pre-specific FPR/TPR constraints.