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)))
}

Try the InformationValue package in your browser

Any scripts or data that you put into this service are public.

InformationValue documentation built on May 1, 2019, 9:12 p.m.