rkt_roc | R Documentation |
Calculate the empirical estimate of the ROC from raw sample or aggregated data.
rkt_roc(prep, method = 1)
## S3 method for class 'rkt_roc'
print(x, ...)
## S3 method for class 'rkt_roc'
plot(x, ...)
prep |
A |
method |
A number specifying the type of ROC estimate. Possible values can be viewed with |
x |
An object of class |
... |
Further parameters passed to |
An object of class rkt_roc
, i.e. a function or a list of two functions (for method = 1).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.