https://github.com/seungjae2525/mrmcbinary
Multi-Reader Multi-Case Analysis of Binary Diagnostic Tests
https://github.com/seungjae2525/mrmcbinary
binary-data diagnostic-accuracy mrmc
Last synced: 2 months ago
JSON representation
Multi-Reader Multi-Case Analysis of Binary Diagnostic Tests
- Host: GitHub
- URL: https://github.com/seungjae2525/mrmcbinary
- Owner: seungjae2525
- License: other
- Created: 2025-01-22T14:48:59.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-02-20T07:58:40.000Z (10 months ago)
- Last Synced: 2025-10-22T03:57:23.378Z (2 months ago)
- Topics: binary-data, diagnostic-accuracy, mrmc
- Language: R
- Homepage:
- Size: 195 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
README
# MRMCbinary
[](https://cran.r-project.org/)
[](https://CRAN.R-project.org/package=MRMCbinary)
[](https://cran.r-project.org/package=MRMCbinary)
[](https://www.repostatus.org/#active/)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://github.com/seungjae2525/MRMCbinary/actions/workflows/R-CMD-check.yaml)
# Multi-Reader Multi-Case Analysis of Binary Diagnostic Tests
## Description
This is the source code for the `MRMCbinary` package in R.
`MRMCbinary` is a package aimed at comparing the performance of diagnostic tests (i.e., sensitivity and specificity) for a binary outcome in multi-reader multi-case (MRMC) study.
### Reference
Lee, S., Jang, S., and Lee, W. Evaluating Diagnostic Accuracy of Binary Medical Tests in Multi-reader Multi-case Study.
## Installation
### The latest release version from CRAN:
```r
install.packages("MRMCbinary")
library(MRMCbinary)
```
### Current GitHub release:
Installation using R package `devtools`:
```r
if (!require("devtools")) { install.packages("devtools") } # if devtools not already installed
devtools::install_github("seungjae2525/MRMCbinary")
library(MRMCbinary)
```
## Example
This is a basic example which shows you how to use `MRMCbinary` package:
``` r
## Load MRMCbinary package
library(MRMCbinary)
## Load example data
data(VanDyke)
## Return the first parts of an object
head(VanDyke)
## Extract unique modalities
unique(VanDyke$treatment)
## Extract Unique readers
unique(VanDyke$reader)
## Create binary test results (Y_ijk)
VanDyke$Y <- as.numeric(VanDyke$rating >= 3)
## Example usage of MRMCbinary function:
# When comparing the sensitivities and specificities between modalities
modality_result <- MRMCbinary(data = VanDyke, Modality = treatment, Reader = reader,
Case = case, D = truth, Y = Y, measure = "All",
effect = "Modality", interaction = NULL,
reference.Modality = "1", reference.Reader = NULL)
print(modality_result)
summary(modality_result, digits = 3)
# When comparing the sensitivities and specificities between readers
reader_result <- MRMCbinary(data = VanDyke, Modality = treatment, Reader = reader,
Case = case, D = truth, Y = Y, measure = "All",
effect = "Reader", interaction = NULL,
reference.Modality = NULL, reference.Reader = "1")
print(reader_result)
summary(reader_result, digits = 3)
# When comparing the sensitivities and specificities between modalities and between readers together
# not considering interaction between modalities and readers
both_result_wo_int <- MRMCbinary(data = VanDyke, Modality = treatment, Reader = reader,
Case = case, D = truth, Y = Y, measure = "All",
effect = "Both", interaction = FALSE,
reference.Modality = "1", reference.Reader = "1")
print(both_result_wo_int)
summary(both_result_wo_int, digits = 3)
# When comparing the sensitivities and specificities between modalities and between readers together
# considering interaction between modalities and readers
both_result_with_int <- MRMCbinary(data = VanDyke, Modality = treatment, Reader = reader,
Case = case, D = truth, Y = Y, measure = "All",
effect = "Both", interaction = TRUE,
reference.Modality = "1", reference.Reader = "1")
print(both_result_with_int)
summary(both_result_with_int, digits = 3)
```
### Bug Reports:
You can also report bugs on GitHub under [Issues](https://github.com/seungjae2525/MRMCbinary/issues/).