quick_roc: A quick ROC plot.

View source: R/roc.R

quick_rocR Documentation

A quick ROC plot.

Description

A quick ROC plot. It's a simple wrapper around pROC::roc, which adds Youden's criterion optimal cutoff and conditional positioning for AUC (+CI) estimates.

Usage

quick_roc(
  test = NULL,
  refstd = NULL,
  roc_params = list(direction = c("auto", "<", ">")),
  plot = TRUE,
  plot_params = list(print.thres = TRUE, mar = par("mar"), print.thres.pattern =
    "Thresh: %.2f\nSp: %.2f\nSe: %.2f", main = ""),
  plot_auc = TRUE,
  auc_cex = 1
)

Arguments

test

Quantitative marker

refstd

Reference standard (binary variable)

roc_params

list of parameters passed to pROC::roc

plot

Logical. Plot ROC curve?

plot_params

list of parameters passed to pROC::plot.roc

plot_auc

add auc estimates to the plot

auc_cex

cex for auc estimates in the plot

Value

The function plot the graph and return a list with ROC statistics


lbraglia/lbdiag documentation built on July 29, 2023, 3:35 p.m.