Learn R Programming

tpAUC (version 2.1.1)

tproc.est: Two-Way Partial AUC Estimation

Description

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.

Usage

tproc.est(response, predictor, threshold = c(1, 0), smooth = FALSE)

Arguments

response
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.

See Also

roc, podc.est, proc.est

Examples

Run this code

library('pROC')
data(aSAH)
tproc.est(aSAH$outcome, aSAH$s100b, threshold=c(0.8,0.2))


Run the code above in your browser using DataLab