Computing Sensitivity at a Fix Value of Specificity and Vice Versa as Well as Bootstrap Metrics for ROC Curves

For a binary classification the adjusted sensitivity and specificity are measured for a given fixed threshold. If the threshold for either sensitivity or specificity is not given, the crossing point between the sensitivity and specificity curves are returned. For bootstrap procedures, mean and CI bootstrap values of sensitivity, specificity, crossing point between specificity and specificity as well as AUC and AUCPR can be evaluated.


Haghish, E. F. (2022). adjROC: Computing Sensitivity at a Fix Value of Specificity and Vice Versa [Computer software]. https://CRAN.R-project.org/package=adjROC.


adjROC: ROC Curve Evaluation at a Given Threshold

CRAN version

adjROC is an R package for computing adjusted sensitivity and specificity at particular thresholds. There are methods for estimating the best balance betwen sensitivity and specificity. However, in clinical settings, there might be an interest in calculating the sensitivity based on a particular fixed value of specificity or in contrast, calculating specificity for a particular value of sensitivity which is of interest.

For a screening test, specificity of 0.95 might be too high and lower values of specificity may also be acceptable. In another settings, researchers might wish to know the mount of specificity, while keeping sensitivity high. And finally, in some situations, a roughly equal value might be desired. Depending on the application, adjROC package allows users to calculate:

  • Specificity at a particular fix value of specificity
  • Specificity at the specified value of sensitivity
  • The crossing point (meeting point) between sensitivity and specificity curves

and on top of these, it can also visualize the curves and the selected cutoff threshold.

Reference manual

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

install.packages("adjROC")

0.3 by E. F. Haghish, 4 years ago


https://github.com/haghish/adjROC, https://www.sv.uio.no/psi/english/people/aca/haghish/


Report a bug at https://github.com/haghish/adjROC/issues


Browse source code at https://github.com/cran/adjROC


Authors: E. F. Haghish


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports ROCit, ggplot2, boot, yardstick


See at CRAN