| matthews_coeff | R Documentation |
Given the observed and predicted values of binary data computes the Matthews Correlation Coefficient (MCC) also known as Phi Coefficient or Mean Square Contingency Coefficient.
matthews_coeff(observed, predicted, remove_na = TRUE)
observed |
( |
predicted |
( |
remove_na |
( |
Given the following binary confusion matrix:
Matthews Correlation Coefficient (MCC) is computed as:
A single numeric value with the Matthews Correlation Coefficient.
Other categorical_metrics:
accuracy(),
brier_score(),
categorical_summary(),
confusion_matrix(),
f1_score(),
kappa_coeff(),
math_mode(),
pccc(),
pcic(),
pr_auc(),
precision(),
recall(),
roc_auc(),
sensitivity(),
specificity()
## Not run:
matthews_coeff(factor(c("a", "b")), factor(c("a", "b")))
matthews_coeff(factor(c("a", "b")), factor(c("b", "a")))
matthews_coeff(factor(c("a", "b")), factor(c("b", "b")))
matthews_coeff(factor(c(TRUE, FALSE)), factor(c(FALSE, TRUE)))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.