Description Usage Arguments Value See Also Examples
View source: R/fun_replicate-simulation-for-roc.R
This function takes as input the output from predict_style
and
rearranges this output so that it can subsequently be used by the plotting
function of the ROCR package (plot.performance
). Conversely to traditional
ROC-analyses, which employ two measures (e.g., TPR and FPR), this function
returns output to plot only one of these measures (e.g., TPR).
1 | performance_style(x, dat)
|
x |
Character. One of |
dat |
List. The output from |
An S4 object of the ROCR-class performance.
The package ROCR and its performance-class
.
1 2 3 4 5 6 7 8 | ## Not run:
res_1 <- predict_style(reps = 5, style = "ARS")
res_2 <- performance_style("ACC", res_1)
ROCR::plot(res_2)
ROCR::plot(res_2, avg="vertical", spread.estimate="stddev",
show.spread.at=seq(.1, .9, length=9))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.