Description Usage Arguments Value See Also Examples
View source: R/measure_wkappa.R
This function is based on function 'measureWKAPPA' from 'mlr' package.
1 | measure_wkappa(truth = NULL, response = NULL, conf_mat = NULL)
|
truth |
a vector with true (reference) values. |
response |
a vector with response (predicted) values. |
conf_mat |
a table similar to ( |
[!!!]
Other measures_:
measure_kappa()
1 2 3 4 5 6 7 | truth <- rep(1:3, times = 50)
prediction <- rep(3:1, each = 50)
measure_wkappa(truth, prediction)
square_matrix <- table(truth, prediction)
measure_wkappa(conf_mat = square_matrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.