rkt_roc {ROCket} | R Documentation |
Empirical estimate of the ROC
Description
Calculate the empirical estimate of the ROC from raw sample or aggregated data.
Usage
rkt_roc(prep, method = 1)
## S3 method for class 'rkt_roc'
print(x, ...)
## S3 method for class 'rkt_roc'
plot(x, ...)
Arguments
prep |
A |
method |
A number specifying the type of ROC estimate. Possible values can be viewed with |
x |
An object of class |
... |
Value
An object of class rkt_roc
, i.e. a function or a list of two functions (for method = 1).
Examples
require(ROCket)
scores <- c(1, 2, 3, 4)
positives <- c(0, 1, 0, 1)
prep <- rkt_prep(scores, positives)
roc1 <- rkt_roc(prep, method = 1)
roc2 <- rkt_roc(prep, method = 2)
roc3 <- rkt_roc(prep, method = 3)
plot(roc1)
plot(roc2)
plot(roc3)
[Package ROCket version 1.0.1 Index]