This function is based on function `measureKAPPA` from `mlr` package.
measure_kappa(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_wkappa()
#> [1] -0.02#> [1] -0.02# # matrix(c("TP", "FN", "FP", "TN"), 2) # # make_conf_matrix <- function(TP, FN, FP, TN) # matrix(c(TP, FN, FP, TN), 2) #