weighted_kappa: Computes Cohen's 1968 weighted kappa coefficient
Description
Computes Cohen's 1968 weighted kappa coefficient
Usage
weighted_kappa(n, w = diag(rep(1, nrow(n))), quadratic = FALSE)
Value
value of weighted kappa
Arguments
- n
matrix of observed counts
- w
matrix of weights. Defaults to identity matrix
- quadratic
logical. Should quadratic weights be used? Default is FALSE.
If TRUE, quadratic weights are used. These override the values in w.
If FALSE, weights in w are used