roc_predict: Predict outcome for new data

Description Usage Arguments See Also Examples

View source: R/roc_predict.R

Description

Predict outcome for new data

Usage

1
roc_predict(object, x_new, ...)

Arguments

object

Either an object which inherits from one of following classes: roc_result_list, roc_info, roc_info_multi, or a data frame with exactly one row, which contains columns: "cutoff" (numeric), "below" (character), "above" (character).

x_new

A numeric vector with data to predict on.

...

Arguments to further methods.

See Also

Other functions for ROC: access_elements, calculate_performance, print.as_str, roc_performance_measures

Examples

 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))

GegznaV/manyROC documentation built on Sept. 17, 2018, 2:15 p.m.