Description Usage Arguments Details Value References Examples
This function calculates the confusion matrices across different cutoff points.
1 | cal_confus(true_vec, pred_vec, force_diag=TRUE)
|
true_vec |
A binary vector of real labels |
pred_vec |
A continuous predicted score(probabilities) vector, must be the same length with |
force_diag |
If TRUE, TPR and FPR will be forced to across (0, 0) and (1, 1) |
This function calculates the TP, FP, FN, TN, TPR, FPR and PPV across different cutoff points of pred_vec
. TPR and FPR are forced to across (0, 0) and (1, 1) if force_diag=TRUE
.
TP |
True positive |
FP |
False positive |
FN |
False negative |
TN |
True negative |
TPR |
True positive rate |
FPR |
False positive rate |
PPV |
Positive predictive value |
https://en.wikipedia.org/wiki/Confusion_matrix
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.