View source: R/doROCcurveMRMC.R
doROCxy | R Documentation |
Create empirical ROC curve
doROCxy(sa, sp)
sa |
signal-absent scores |
sp |
signal-present scores |
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
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.