Learn R Programming

ROCit (version 2.1.1)

ciROCemp: Confidence Interval of Empirical ROC Curve

Description

Function ciROCemp estimates confidence interval of empirically estimated ROC curve.

Usage

ciROCemp(rocit_emp, level)

Value

A list object containing TPR, upper and lower bound of TPR at certain FPR values.

Arguments

rocit_emp

An object of class rocit, (method = "empirical").

level

Desired level of confidence to be estimated.

Comment

ciROCemp is used internally in ciROC.rocit of ROCit.

See Also

rocit, ciROC, plot.rocci

Examples

Run this code
set.seed(100)
score <- c(runif(20, 15, 35), runif(15, 25, 45))
class <- c(rep(1, 20), rep(0, 15))
rocit_object <- rocit(score, class)
ciROC <- ciROCemp(rocit_object, level = 0.9)
names(ciROC)

Run the code above in your browser using DataLab