Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2019:41:e2019007.
doi: 10.4178/epih.e2019007. Epub 2019 Mar 28.

Diagnostic test accuracy: application and practice using R software

Affiliations

Diagnostic test accuracy: application and practice using R software

Sung Ryul Shim et al. Epidemiol Health. 2019.

Abstract

The objective of this paper is to describe general approaches of diagnostic test accuracy (DTA) that are available for the quantitative synthesis of data using R software. We conduct a DTA that summarizes statistics for univariate analysis and bivariate analysis. The package commands of R software were "metaprop" and "metabin" for sensitivity, specificity, and diagnostic odds ratio; forest for forest plot; reitsma of "mada" for a summarized receiver-operating characteristic (ROC) curve; and "metareg" for meta-regression analysis. The estimated total effect sizes, test for heterogeneity and moderator effect, and a summarized ROC curve are reported using R software. In particular, we focus on how to calculate the effect sizes of target studies in DTA. This study focuses on the practical methods of DTA rather than theoretical concepts for researchers whose fields of study were non-statistics related. By performing this study, we hope that many researchers will use R software to determine the DTA more easily, and that there will be greater interest in related research.

Keywords: Diagnostic test accuracy; Likelihood ratios; Mada; Meta-analysis; Receiver-operating characteristic curve; Reitsma.

PubMed Disclaimer

Conflict of interest statement

The authors have no conflicts of interest to declare for this study.

Figures

Figure 1.
Figure 1.
Summary statistics for diagnostic test accuracy.
Figure 2.
Figure 2.
Flow chart of diagnostic test accuracy (DTA) using R “mada” & “meta” package. TP, true positive; FP, false positive; FN, false negative; TN, true negative; DOR, diagnostic odds ratio; SROC, summary receiver operating characteristic.
Figure 3.
Figure 3.
Univariate analysis: sensitivity. CI, confidence interval; g, subgroup.
Figure 4.
Figure 4.
Univariate analysis: diagnostic odds ratio. OR, odds ratio; CI, confidence interval; g, subgroup.
Figure 5.
Figure 5.
Summary receiver operating characteristic (SROC) curve (bivariate model) for diagnostic test accuracy. CI, confidence interval; AUC, area under the curve; DOR, diagnostic odds ratio.

References

    1. Hwang SD, Shim SR. Meta-analysis: from forest plot to network meta-analysis. Seoul: Hannarae; 2018. pp. 224–246. (Korean)
    1. Shim SR. Diagnostic test accuracy using R & Meta-DiSc software. Gwacheon: SDB Lab; 2019. (Korean)
    1. Shim SR, Shin IS, Bae JM. Meta-analysis of diagnostic tests accuracy using STATA software. J Health Info Stat. 2015;40:190–199. (Korean)
    1. Moses LE, Shapiro D, Littenberg B. Combining independent studies of a diagnostic test into a summary ROC curve: data analytic approaches and some additional considerations. Stat Med. 1993;12:1293–1316. - PubMed
    1. Littenberg B, Moses LE. Estimating diagnostic accuracy from multiple conflicting reports: a new meta analytic method. Med Decis Making. 1993;13:313–321. - PubMed