Fast, Weighted ROC Curves

Fast computation of Receiver Operating Characteristic (ROC) curves and Area Under the Curve (AUC) for weighted binary classification problems (weights are example-specific cost values).


2018.10.1 PR#3

new tests compare with geometry and GsymPoint.

simplify vignette/examples (remove AUC from Speed vignette).

always require rather than library the suggested packages.


comparisons with PRROC.


if(require(microbenchmark)) in ROC example for CRAN.


if(require(microbenchmark)) in examples for CRAN.


if(require(microbenchmark)) in vignettes for CRAN.

2017.06.08 PR#5

data(foo, envir=environment()) to pass CRAN checks.

2016.11.09 PR#4

WeightedROC stops with an error when guess has NA values.

2016.03.22 PR#2

WeightedROC stops with an error when there is only one value of label.


WeightedROC returns threshold, FP, FN.


Compare with glmnet::auc.

Speed vignette.


First version with examples and tests copied from ChIP-seq data analysis project.

Compare with pROC and ROCR packages.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


2020.1.31 by Toby Dylan Hocking, 2 years ago

Report a bug at

Browse source code at

Authors: Toby Dylan Hocking

Documentation:   PDF Manual  

GPL-3 license

Suggests ROCR, pROC, PRROC, microbenchmark, glmnet, testthat, ggplot2, GsymPoint, geometry

See at CRAN