Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

KAPPA

Cohen's kappa


Description

Defined as: 1 - (1 - p0) / (1 - pe). With: p0 = 'observed frequency of agreement' and pe = 'expected agremeent frequency under independence

Usage

KAPPA(truth, response)

Arguments

truth

vector of true values

response

vector of predicted values n = 20 set.seed(122) truth = as.factor(sample(c(1,2,3), n, replace = TRUE)) response = as.factor(sample(c(1,2,3), n, repla KAPPA(truth, response)


measures

Performance Measures for Statistical Learning

v0.3
GPL-3
Authors
Philipp Probst [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.