Learn R Programming

RJafroc (version 1.0.1)

SimulateRocDataset: Simulates an individual binormal model ROC dataset

Description

Simulates a binormal model ROC dataset for a single modality and reader

Usage

SimulateRocDataset(K1, K2, a, b, seed = NULL)

Arguments

K1

The number of non-diseased cases

K2

The number of diseased cases

a

The \(a\) parameter of the binormal model

b

The \(b\) parameter of the binormal model

seed

The initial seed, default is NULL

Value

An ROC dataset

Details

See book Chapter 6 for details

References

Chakraborty DP (2017) Observer Performance Methods for Diagnostic Imaging - Foundations, Modeling, and Applications with R-Based Examples, CRC Press, Boca Raton, FL. https://www.crcpress.com/Observer-Performance-Methods-for-Diagnostic-Imaging-Foundations-Modeling/Chakraborty/p/book/9781482214840

Examples

Run this code
# NOT RUN {
K1 <- 5;K2 <- 7;
a <- 1.5;b <- 0.5

rocDataRaw <- SimulateRocDataset(K1 = K1, K2 = K2,
   a = a, b = b)
  
## plot the data
ret <- PlotEmpiricalOperatingCharacteristics(rocDataRaw, trts= 1, 
   rdrs = 1, opChType = "ROC")
print(ret$Plot)

# }

Run the code above in your browser using DataLab