sim.gRoeMetz | R Documentation |
This procedure simulates an MRMC data set of an ROC experiment comparing two modalities. It is based on Gallas2014_J-Med-Img_v1p031006, which generalizes of the model in Roe1997_Acad-Radiol_v4p298 and Roe1997_Acad-Radiol_v4p587. Specifically, it allows the variance components to depend on the truth and the modality. For the simpler Roe and Metz model, you can enter the smaller set of parameters into sim.gRoeMetz.config and it will return a larger set of parameters that can be used with this function.
sim.gRoeMetz(config)
config |
[list] of simulation parameters:
|
The simulation is a linear model with six fixed effects related to modality and truth and 18 normally distributed independent random effects for readers, cases, and the interaction between the two. Here is the linear model:
L.mrct = mu.t + mu.mt
+ reader.rt + case.ct + readerXcase.rct
+ modalityXreader.mrt + modalityXcase.mct + modalityXreaderXcase.mrct
m=modality (levels: A and b)
t=truth (levels: neg and Pos)
mu.t is the global mean for t=neg and t=pos cases
mu.mt is the modality specific fixed effects for t=neg and t=pos cases
the remaining terms are the random effects: all independent normal random variables
dFrame.imrmc [data.frame] with (nC.neg + nC.pos)*(nR+1) rows including
readerID: [factor] w/ nR levels "reader1", "reader2", ...
caseID: [factor] w/ nC levels "case1", "case2", ...
modalityID: [factor] w/ 1 level config$modalityID
score: [numeric] reader score
Note that the first nC.neg + nC.pos rows specify the truth labels for each case. For these rows, the readerID must be "truth" and the score must be 0 for negative cases and 1 for positive cases.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.