Skip to main content
QUICK REVIEW

[Paper Review] ROCnReg: An R Package for Receiver Operating Characteristic Curve Inference with and without Covariate Information

María Xosé Rodríguez‐Álvarez, Vanda Inácio|arXiv (Cornell University)|Mar 29, 2020
Statistical Methods and Bayesian InferenceMathematics52 references8 citations
TL;DR

This paper introduces the ROCnReg R package for estimating pooled, covariate-specific, and covariate-adjusted ROC curves using frequentist and Bayesian methods, including nonparametric and semiparametric approaches. It enables inference on diagnostic accuracy with covariates, optimal thresholds via Youden index or target FPF, and model diagnostics via posterior predictive checks and information criteria, illustrated in a BMI-CVD risk study.

ABSTRACT

The receiver operating characteristic (ROC) curve is the most popular tool used to evaluate the discriminatory capability of diagnostic tests/biomarkers measured on a continuous scale when distinguishing between two alternative disease states (e.g, diseased and nondiseased). In some circumstances, the test's performance and its discriminatory ability may vary according to subject-specific characteristics or different test settings. In such cases, information-specific accuracy measures, such as the covariate-specific and the covariate-adjusted ROC curve are needed, as ignoring covariate information may lead to biased or erroneous results. This paper introduces the R package ROCnReg that allows estimating the pooled (unadjusted) ROC curve, the covariate-specific ROC curve, and the covariate-adjusted ROC curve by different methods, both from (semi) parametric and nonparametric perspectives and within Bayesian and frequentist paradigms. From the estimated ROC curve (pooled, covariate-specific or covariate-adjusted), several summary measures of accuracy, such as the (partial) area under the ROC curve and the Youden index, can be obtained. The package also provides functions to obtain ROC-based optimal threshold values using several criteria, namely, the Youden Index criterion and the criterion that sets a target value for the false positive fraction. For the Bayesian methods, we provide tools for assessing model fit via posterior predictive checks, while model choice can be carried out via several information criteria. Numerical and graphical outputs are provided for all methods. The package is illustrated through the analyses of data from an endocrine study where the aim is to assess the capability of the body mass index to detect the presence or absence of cardiovascular disease risk factors. The package is available from CRAN at https://CRAN.R-project.org/package=ROCnReg.

Motivation & Objective

  • To address limitations in standard ROC analysis when diagnostic test performance varies with subject-specific covariates such as age and gender.
  • To provide a unified R package for estimating pooled, covariate-specific, and covariate-adjusted ROC curves under both frequentist and Bayesian paradigms.
  • To support inference on key accuracy measures like AUC, partial AUC, and Youden index, and to identify optimal thresholds using multiple criteria.
  • To offer tools for model assessment and selection, including posterior predictive checks and information criteria in the Bayesian framework.
  • To demonstrate the package’s utility through a real-world endocrine study assessing BMI’s ability to detect cardiovascular disease risk factors.

Proposed method

  • Employs frequentist methods using parametric models (e.g., normal error assumption) and nonparametric kernel smoothing for covariate-specific and adjusted ROC estimation.
  • Applies Bayesian nonparametric methods via Dirichlet process mixtures of normals and Bayesian bootstrap for flexible, distribution-free estimation of conditional densities.
  • Uses Markov Chain Monte Carlo (MCMC) sampling to estimate posterior distributions of ROC curves and associated summary measures.
  • Implements model diagnostics via posterior predictive checks and effective sample sizes, with Geweke statistics for MCMC convergence assessment.
  • Supports estimation of optimal thresholds using the Youden index and target false positive fraction criteria.
  • Provides numerical and graphical outputs, including trace plots, credible intervals, and posterior mean curves for conditional densities and thresholds.

Experimental results

Research questions

  • RQ1How can ROC curve estimation be improved when diagnostic test performance varies with covariates like age and gender?
  • RQ2What are the relative advantages of frequentist versus Bayesian approaches in estimating covariate-specific and adjusted ROC curves?
  • RQ3How can optimal diagnostic thresholds be selected when covariate effects are present, using criteria such as the Youden index or target FPF?
  • RQ4What model assessment tools are effective for Bayesian ROC models, and how can they be implemented in practice?
  • RQ5To what extent does incorporating covariate information improve the accuracy and fairness of diagnostic test evaluation in real-world applications?

Key findings

  • The ROCnReg package successfully implements estimation of pooled, covariate-specific, and covariate-adjusted ROC curves across parametric, semiparametric, and nonparametric models.
  • Bayesian nonparametric methods via Dirichlet process mixtures provided flexible, robust estimation of conditional densities and ROC curves without strong distributional assumptions.
  • Posterior predictive checks and information criteria enabled effective model comparison and selection, particularly in complex, high-dimensional settings.
  • The estimated covariate-specific thresholds for BMI to detect CVD risk factors varied significantly by age and gender, with higher thresholds observed in women compared to men of the same age.
  • The posterior mean of the true positive fraction (TPF) for a fixed false positive fraction (FPF = 0.3) showed clear age- and gender-dependent patterns, with higher TPF in older men than in younger women.
  • The package’s MCMC-based inference provided reliable credible intervals and effective sample sizes, with convergence diagnostics confirming stable posterior estimates.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.