youden_rocr | R Documentation |
Calculate performance measures at the Youden Index for a ROC curve
youden_rocr(pred)
pred |
An object of class prediction, as commonly used by ROCR |
A list of values, with the Youden Index, speci, sensi, positive & negative predictive values
# Using the basic example from the ROCR package
library(ROCR)
data(ROCR.simple)
pred <- prediction( ROCR.simple$predictions, ROCR.simple$labels )
youden_rocr(pred) # these can be printed out or used later in plotting functions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.