04pallav
9/13/2017 - 9:27 PM

calculating optimal threshold

calculating optimal threshold

library(pROC)
my_roc <- roc(my_response, my_predictor)
coords(my_roc, "best", ret = "threshold")