pROC_quick_plot | R Documentation |
Quickly plots a model based on my own liking
pROC_quick_plot( mod, thres_method = c("youden", "closest.topleft"), col = "blue", ..., boots = 0L )
mod |
An object with class "roc" (a ROC model made with [pROC::roc()]) |
thres_method |
The threshold method to print |
col |
The color of the curve |
... |
Additional arguments passed to [pROC::plot.roc()] |
boots |
Number of bootstrap replications to perform; if < 2L will not perform any |
When adding bootstrapped confidence intervals, the core function of 'pROC:::ci.sp.roc()' is replaced with a quicker version that uses parallel processing to speed up the bootstraps and some other data manipulation. There will likely be a delay when running with bootstraps.
if (mark::package_available("pROC")) { x <- pROC::aSAH mod <- pROC::roc(x$outcome, x$s100b, levels = c("Good", "Poor")) pROC_quick_plot(mod) ## Not run: pROC_quick_plot(mod, boots = 100) ## End(Not run) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.