| kappa_coeff | R Documentation | 
Given the observed and predicted values of categorical data (of any number of classes) computes the Cohen's Kappa coefficient.
kappa_coeff(observed, predicted, remove_na = TRUE)
observed | 
 (  | 
predicted | 
 (  | 
remove_na | 
 (  | 
Given a confusion matrix P, Cohen's Kappa coefficient is be computed by:
P_o is the sum of all diagonal values and P_e is the sum of all the products of row i times col i.
A single numeric value with the Cohen's Kappa coefficient.
Other categorical_metrics: 
accuracy(),
brier_score(),
categorical_summary(),
confusion_matrix(),
f1_score(),
math_mode(),
matthews_coeff(),
pccc(),
pcic(),
pr_auc(),
precision(),
recall(),
roc_auc(),
sensitivity(),
specificity()
## Not run: 
kappa_coeff(factor(c("a", "b")), factor(c("a", "b")))
kappa_coeff(factor(c("a", "b")), factor(c("b", "a")))
kappa_coeff(factor(c("a", "b", "a")), factor(c("b", "a", "c")))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.