View source: R/utilityFunctions.R
roc2binary | R Documentation |
Convert ROC data formatted for doIMRMC to TPF and FPF data formatted for doIMRMC
roc2binary(df.auc, threshold)
df.auc |
data frame of roc scores formatted for doIMRMC |
threshold |
The threshold for determining binary decisions |
a list of two data frames (df.tpf and df.fpf) both formatted for doIMRMC
# Create a sample configuration file
config <- sim.gRoeMetz.config()
# Simulate an MRMC ROC data set
dFrame.imrmc <- sim.gRoeMetz(config)
# Convert ROC MRMC data to TPF and FPF data frames
result <- roc2binary(dFrame.imrmc, threshold = 0.9)
# Analyze TPF data using doIMRMC
tpf_result <- doIMRMC(result$df.tpf)
# View(tpf_result$perReader)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.