Learn R Programming

tpAUC (version 2.1.1)

proc: Partial AUC Estimation and Inference

Description

Estimate and infer the area of region under ROC curve with pre-specific FPR constraint (FPR-pAUC). See http://www3.stat.sinica.edu.tw/statistica/j27n1/j27n117/j27n117.html for details.

Usage

proc(response, predictor, threshold = 0.9, method = "MW", ci = TRUE,
  cp = 0.95, 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/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
numeric; false positive rate (FPR) constraint.
method
methods to estimate FPR-pAUC. MW: Mann-Whitney statistic. expect: method in (2.2) http://www.ncbi.nlm.nih.gov/pubmed/20729218. jackknife: jackknife method in http://www3.stat.sinica.edu.tw/statistica/j27n1/j27n117/j27n117.html.
ci
logic; compute the confidence interval of estimation?
cp
numeric; coverage probability of confidence interval.
smooth
if TRUE, the ROC curve is passed to smooth to be smoothed.

Value

Estimate and Inference of FPR partial AUC.

Details

This function estimates and infers FPR partial AUC given response, predictor and pre-specific FPR constraint. MW: Mann-Whitney statistic. expect: method in (2.2) http://www.ncbi.nlm.nih.gov/pubmed/20729218. jackknife: jackknife method in http://www3.stat.sinica.edu.tw/statistica/j27n1/j27n117/j27n117.html.

See Also

roc, tproc.est, proc.est, proc.ci

Examples

Run this code

library('pROC')
data(aSAH)
proc(aSAH$outcome, aSAH$s100b,threshold=0.9, method='expect',ci=TRUE, cp=0.95)

Run the code above in your browser using DataLab