Function that calculates the best performance measure

calculate_performance(pred, measure)

Arguments

pred

object of class "prediction" from package ROCR

measure

one of the following performance measures c("auc","j","bac","kappa")

Value

best value of selected performance measure