compute_roc: Compute ROC and PR curve points

View source: R/mcmcRocPrc.R

compute_rocR Documentation

Compute ROC and PR curve points

Description

Faster replacements for calculating ROC and PR curve data than with ROCR::prediction() and ROCR::performance()

Usage

compute_roc(yvec, pvec)

compute_pr(yvec, pvec)

Details

Replacements to use instead of a combination of ROCR::prediction() and ROCR::performance() to calculate ROC and PR curves. These functions are about 10 to 20 times faster when using mcmcRocPrc() with curves = TRUE and/or fullsims = TRUE.

See this issue on GH (ShanaScogin/BayesPostEst#25) for more general details.

And here is a note with specific performance benchmarks, compared to the old approach relying on ROCR.


BayesPostEst documentation built on Aug. 19, 2025, 1:11 a.m.