cohenkappa | R Documentation |
Cohen's kappa
cohenkappa(x, weights = c("linear", "quadratic"))
x |
An n*n matrix/contingency table |
weights |
A character string specifying "linear" or "quadratic" weights, or a numeric matrix of n*n weights. |
An object of type "kappa"
x <- matrix(c(106, 10,4,22,28, 10,2, 12, 6),ncol=3,byrow=TRUE) cohenkappa(x,weights="quadratic")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.