youden_rocr: Calculate performance measures at the Youden Index for a ROC...

View source: R/ROCking.R

youden_rocrR Documentation

Calculate performance measures at the Youden Index for a ROC curve

Description

Calculate performance measures at the Youden Index for a ROC curve

Usage

youden_rocr(pred)

Arguments

pred

An object of class prediction, as commonly used by ROCR

Value

A list of values, with the Youden Index, speci, sensi, positive & negative predictive values

Examples

# 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

imbeimainz/IMBEImisc documentation built on Nov. 14, 2024, 1:22 p.m.