rocauc: Estimate AUC from a ROC Table

Description Usage Arguments Value Examples

View source: R/ROCTable.R

Description

Calculate the area under a ROC curve from a ROC Table. ROC Table is an S3 object derived from an R matrix and generated by the roctable() function

Usage

1
rocauc(roc)

Arguments

roc

A ROC Table (S3 object)

Value

auc, the area under the ROC curve whose coordinates are in the first two columns of the ROC table

Examples

1
2
3
ROCCa125 <- roctable(PancreaticData$Ca125, PancreaticData$Status)
AUCCa125 <- rocauc(ROCCa125)
print(paste("AUC for Ca125 tumour marker: ", round(AUCCa125,4)))

parodistefano/properROC documentation built on May 24, 2019, 6:16 p.m.