View source: R/sim.NormalIG.Hierarchical.R
sim.NormalIG.Hierarchical | R Documentation |
This procedure simulates an MRMC data set for an MRMC agreement study comparing two modalities. It is a hierarchical model that consists of two interaction terms: reader-case interaction and modality-reader-case-replicate interaction. Both interaction terms are conditionally normally distributed, with the case(-related) factor contributing to the conditional mean and the reader(-related) factor contributing to the conditional variance. The case effect is normally distributed, while the reader effect is an inverse-gamma.
The Hierarchical Inverse-Gamma model is described in this paper:
S. Wen and B. D. Gallas, “Three-Way Mixed Effect ANOVA to Estimate MRMC Limits of Agreement,” Statistics in Biopharmaceutical Research, 14, pp. 532–541, 2022, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/19466315.2022.2063169")}
sim.NormalIG.Hierarchical(
config,
R = NULL,
AR = NULL,
BR = NULL,
is.within = FALSE
)
config |
[list] of simulation parameters:
|
R |
[vector] of size |
AR |
[vector] of size |
BR |
[vector] of size |
is.within |
[bol] whether the data are within-modality (A==B).
In this case the modality-reader and modality-case interaction terms
will be the same.
Default |
The model has the following structure: X.ijkl = mu + m.i + RC.jk + mRCE.ijkl
mu = grand mean
m.i = modalities (levels: A and B)
RC.jk given R.j,C.k ~ N(C.k, R.j) reader-case interaction term
mRCE.ijkl given mR.ij,mC.ik ~ N(mC.ik, mR.ij) modality-reader-case-replicate term
C.k and mC.ik are Normal/beta distributed
R.j and mR.ij are Inverse-Gamma distributed
df [data.frame] with nR x nC x 2 rows including
readerID: [Factor] w/ nR levels "reader1", "reader2", ...
caseID: [Factor] w/ nC levels "case1", "case2", ...
modalityID: [Factor] w/ 2 levels "testA" and "testB"
score: [num] reader score
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.