
Cohen's Kappa coefficient of agreement for a two-class confusion table
Source:R/kapco.R
Kappacoef.RdFormula: kappa = (P0 - Pe) / (1 - Pe), Pe = (tp+fn)/n*(tp+fp)/n + (fp+tn)/n*(fn+tn)/n
References
Montesinos Lopez, Montesinos Lopez and Crossa (2022), Multivariate Statistical Machine Learning Methods for Genomic Prediction, Springer, doi:10.1007/978-3-030-89010-0. Chapter 4, Sect. 4.5.2, p. 134, which gives kappa = (P0 - Pe)/(1 - Pe) with P0 the proportion correctly classified and Pe as written above; the book attributes it to Cohen (1960). Read from the chapter PDF, not recalled.