The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

rocvb: R package for ROC inference under verification bias

Overview

rocvb provides point estimates and confidence intervals for ROC‑based diagnostic accuracy metrics for tests and biomarkers subject to verification bias.

rocvb currently supports inference for the following accuracy metrics for two-class continuous tests under missing-at-random (MAR) disease verification:

Multiple types of confidence intervals are provided, including bootstrap-based, MOVER-based, and empirical likelihood–based intervals.

For each estimand, results are returned simultaneously using four bias-corrected estimators for sensitivity and specificity proposed by Alonzo and Pepe (2005):


Installation

Install from GitHub:

install.packages("remotes")
remotes::install_github("swang1021/rocvb")

Technical details

See the function documentation and help in R for statistical details.


Usage

library(rocvb)

set.seed(123)
n <- 100
T <- abs(rnorm(n))
A <- abs(rnorm(n))

score <- 0.3 * T + 0.3 * A + rnorm(n, sd = 1)
D <- as.logical(score > stats::quantile(score, 0.7))
D[sample(n, 30)] <- NA

auc.ci.mar(T, D, A, n.boot = 50, plot = FALSE)
sen.ci.mar(T, D, A, p = 0.8, n.boot = 50, plot = FALSE)
yi.ci.mar(T, D, A, n.boot = 50, plot = FALSE)

#For more details, see
?auc.ci.mar
?sen.ci.mar
?yi.ci.mar

References

Alonzo, T. A. and Pepe, M. S. (2005). Assessing accuracy of a continuous screening test in the presence of verification bias. Journal of the Royal Statistical Society: Series C (Applied Statistics).

Wang, S., Shi, S., and Qin, G. (2025). Interval estimation for the Youden index of a continuous diagnostic test with verification biased data. Statistical Methods in Medical Research.

Wang, S., Shi, S., and Qin, G. (2025). Empirical likelihood inference for the area under the ROC curve with verification-biased data. Manuscript under peer review.

Wang, S., Shi, S., and Qin, G. (2025). Empirical likelihood-based confidence intervals for sensitivity of a continuous test at a fixed level of specificity with verification bias. Manuscript under peer review.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.