Cohen's Kappa for quadratic and non-quadratic matrices using L1-weights.

cohen(x)

Arguments

x

A matrix with non-negative entries.

Value

Cohen's Kappa

See also

Examples

a <- arsim(2000,c(12,12),6) cohen(a)
#> [1] 0.1264795
cohen(optile(a))
#> [1] 0.6999602