cohenkappa: Cohen's kappa

View source: R/agreement.R

cohenkappaR Documentation

Cohen's kappa

Description

Cohen's kappa

Usage

cohenkappa(x, weights = c("linear", "quadratic"))

Arguments

x

An n*n matrix/contingency table

weights

A character string specifying "linear" or "quadratic" weights, or a numeric matrix of n*n weights.

Value

An object of type "kappa"

Examples

x <- matrix(c(106, 10,4,22,28, 10,2, 12,  6),ncol=3,byrow=TRUE)
cohenkappa(x,weights="quadratic")



Agasax/laRs documentation built on Oct. 21, 2022, 3:09 p.m.