| rkt_prep | R Documentation | 
Calculate the ROC points for all meaningful cutoff values based on predicted scores.
rkt_prep(scores, positives, negatives = totals - positives, totals = 1)
## S3 method for class 'rkt_prep'
print(x, ...)
## S3 method for class 'rkt_prep'
plot(x, ...)
scores | 
 Numeric vector containing the predicted scores.  | 
positives | 
 Numeric vector of the same length as   | 
negatives | 
 Similar to   | 
totals | 
 How many times each score was predicted. Defaults to 1 (assuming data is not aggregated). 
If any value in   | 
x | 
 An environment of class   | 
... | 
 Further parameters.  | 
In a situation where many of the predicted scores have the same value it might be easier and faster to use aggregated data.
An environment of class rkt_prep.
require(ROCket)
plot(rkt_prep(1:4, c(0, 1, 0, 1)))
plot(rkt_prep(1:4, c(0, 1000, 0, 1000), totals = 1000))
plot(rkt_prep(1:4, c(100, 200, 300, 400), totals = c(1000, 800, 600, 400)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.