Description Usage Arguments See Also Examples
Predict outcome for new data
1 | roc_predict(object, x_new, ...)
|
object |
Either an object which inherits from one of following classes:
|
x_new |
A numeric vector with data to predict on. |
... |
Arguments to further methods. |
Other functions for ROC:
access_elements
,
calculate_performance()
,
print.as_str()
,
roc_performance_measures
1 2 3 4 5 6 7 8 9 10 11 12 | library(manyROC)
set.seed(1)
x <- rnorm(10)
gr <- gl(n = 2, k = 5, length = 10, labels = c("H", "S"))
object <- roc_analysis(x, gr)
roc_predict(object, x_new = 1)
roc_predict(object, x_new = -1)
roc_predict(object, x_new = rnorm(20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.