cohen_kappa: Cohen's Kappa

View source: R/cohen_kappa_fun.R

cohen_kappaR Documentation

Cohen's Kappa

Description

Custom-made function to calculate the Cohen's Kappa, which compares two vectors: the result from predict() and the actual values, i.e., the test.

Usage

cohen_kappa(predict_result, test)

Arguments

predict_result

A vector resulting from the predict function

test

A vector with the real values.


gpcastelo/ML-minimum-sample-size documentation built on June 3, 2023, 8:48 p.m.