This function exports confusion matrix (i.e., true positive, false positive, true negative, and false negative) and calculates 11 performance measures. The performance measures are AUC, Precision, Recall, False Positive Rate, True Negative Rate, F-measure, Accuracy, MCC, G-mean, G-measure, and Balance.

performance.calculation(outcome, prob, threshold = 0.5)

Arguments

outcome

a vector of the outcome labels.

prob

a numeric vector of the predicted probability.

threshold

a numeric threshold for the predicted probability. A predicted probability of above a threshold is considered a positive prediction.