# Create an MRMC data frame
# Refer to Gallas2014_J-Med-Img_v1p031006
simRoeMetz.config <- sim.gRoeMetz.config()
# Simulate data
df.MRMC <- sim.gRoeMetz(simRoeMetz.config)
# Reformat data
df <- undoIMRMCdf(df.MRMC)
# Grab part of the data
df <- droplevels(df[grepl("pos", df$caseID), ])
#### uStat11.jointD.identity ####
# Calculate the reader- and case-averaged difference in scores from testA and testB
# (kernelFlag = 1 specifies the U-statistics kernel to be the identity)
result.jointD.identity <- uStat11.jointD(
df,
kernelFlag = 1,
keyColumns = c("readerID", "caseID", "modalityID", "score"),
modalitiesToCompare = c("testA", "testB"))
cat("\n")
cat("uStat11.jointD.identity \n")
print(result.jointD.identity[1:2])
Run the code above in your browser using DataLab