doROCxy {iMRMC} | R 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)
[Package iMRMC version 2.0.0 Index]