This function calculates Cohen's kappa on a contingencyTable or a codeSet

kappa(data)

Arguments

data

A contingencyTable or a codeSet

Value

The kappa of the contingencyTable or codeSet

See also

Examples

#Given a code set kappa(data = codeSet)
#> [1] 0.625
#Given a contingency Table kappa(data = contingencyTable)
#> [1] 0.625