Learn R Programming

ClusROC

INTRODUCTION

The R package ClusROC This package implements the techniques for ROC surface analysis, in cases of clustered data and in presence of covariates. In particular, the package allows to obtain covariate-specific point and interval estimation for:

  • true class fractions (TCFs) at fixed pairs of thresholds;
  • the ROC surface;
  • the optimal pairs of thresholds;
  • the volume under ROC surface (VUS).

Methods considered for the first three quantities are proposed and discussed in To et al. (2022). Referring to the third, three different selection criteria are implemented: Generalized Youden Index (GYI), Closest to Perfection (CtP) and Maximum Volume (MV). Methods considered for the last are proposed and discussed in Xiong et al. (2018). Visualization tools are also provided. We refer readers to the articles cited above for all details.

INSTALLATION

The latest release of package can be installed directly from CRAN by using the code below:

# Install latest release from CRAN
install.packages("ClusROC")

To install the latest development version from Github, you’ll need to do a source install. Those aren’t easy! Try

# Install development version from Github
library(devtools)
install_github("toduckhanh/ClusROC")

Copy Link

Version

Install

install.packages('ClusROC')

Monthly Downloads

221

Version

1.0.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Duc-Khanh To

Last Published

October 1st, 2025

Functions in ClusROC (1.0.3)

print.clus_tcfs

Print summary results from clus_tcfs
print.clus_vus

Print summary results from clus_vus
plot.clus_opt_thres3

Plot of confidence regions for covariate-specific optimal pair of thresholds.
print.ci_clus_vus

Print summary results from ci_clus_vus
print.clus_opt_thres3

Print summary results from clus_opt_thres3
print.clus_lme

Print summary results of an clus_lme object
plot.clus_lme

Plot an clus_lme object.
data_3class_bcx

A simulated data
ci_clus_vus

Confidence Intervals for Covariate-specific VUS
clus_opt_thres3

Estimation of the covariate-specific optimal pair of thresholds for clustered data.
clus_roc_surface

Plot an estimated covariate-specific ROC surface for clustered data.
clus_lme

Linear Mixed-Effects Models for a continuous diagnostic test or a biomarker (or a classifier).
EnergyEthiopia

A subset of energy choice data in 4 cities of Ethiopia
clus_vus

Estimation of the covariate-specific VUS for clustered data.
clus_tcfs

Estimation of the covariate-specific TCFs for clustered data.
ClusROC-package

ROC Analysis in Three-Class Classification Problems for Clustered Data
data_3class

A simulated data
MouseNeurons

A subset of mouse brain cells data