Learn R Programming

iMRMC (version 2.1.0)

roc2binary: Convert ROC data formatted for doIMRMC to TPF and FPF data formatted for doIMRMC

Description

Convert ROC data formatted for doIMRMC to TPF and FPF data formatted for doIMRMC

Usage

roc2binary(df.auc, threshold)

Value

a list of two data frames (df.tpf and df.fpf) both formatted for doIMRMC

Arguments

df.auc

data frame of roc scores formatted for doIMRMC

threshold

The threshold for determining binary decisions

Examples

Run this code
# 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)

Run the code above in your browser using DataLab