quick_roc | R Documentation |
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.
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
)
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 |
The function plot the graph and return a list with ROC statistics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.