doROCxy: Create empirical ROC curve

View source: R/doROCcurveMRMC.R

doROCxyR Documentation

Create empirical ROC curve

Description

Create empirical ROC curve

Usage

doROCxy(sa, sp)

Arguments

sa

signal-absent scores

sp

signal-present scores

Value

data frame of an ROC curve

  • fpf False-positive fractions (1-specificity)

  • tpf True-positive fractions (sensitivity)

  • threshold Threshold corresponding to each fpf, tpf operating point

Examples

# Create a sample configuration file
config <- sim.gRoeMetz.config()
# Simulate an MRMC ROC data set
dFrame.imrmc <- sim.gRoeMetz(config)
# Isolate signal absent scores
indexSA <- grep("negCase", dFrame.imrmc$caseID)
sa <- dFrame.imrmc[indexSA, ]$score
# Isolate signal present scores
indexSP <- grep("posCase", dFrame.imrmc$caseID)
sp <- dFrame.imrmc[indexSP, ]$score
# Compute empirical ROC curve
result <- doROCxy(sa, sp)

iMRMC documentation built on Sept. 11, 2024, 7:12 p.m.

Related to doROCxy in iMRMC...