R/StandAloneFuncs.R

# Get False Positive Rate(1-Specificity) and True Positive Rate (Sensitivity)
getFprTpr<- function(actuals, predictedScores, threshold=0.5){
  return(list(1-specificity(actuals=actuals, predictedScores=predictedScores, threshold=threshold),
              sensitivity(actuals=actuals, predictedScores=predictedScores, threshold=threshold)))
}
selva86/InformationValue documentation built on May 29, 2019, 5:55 p.m.