performance.calculation: Performance Calculation

Description Usage Arguments

View source: R/performance.calculation.R

Description

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.

Usage

1
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.


software-analytics/Rnalytica documentation built on Aug. 16, 2020, 9:38 p.m.