Given a data.frame with a numeric predictor variable and a binary outcome
variable this function returns a data.frame that includes all elements of
the confusion matrix (true positives, false positives, true negatives,
and false negatives) for every unique value of the predictor variable.
Additionally, the true positive rate (tpr), false positive rate (fpr),
true negative rate (tnr) and false negative rate (fnr) are returned.
# NOT RUN {## First two classes of the iris datadat <- iris[1:100, ]
roc(data = dat, x = "Petal.Width", class = "Species",
pos_class = "versicolor", neg_class = "setosa", direction = ">=")
# }