Cohen's kappa for two raters, unweighted or weighted, with the z test of kappa = 0. Equivalent to
irr::kappa2(ratings, weight) in R. The ratings are numeric.
The levels are the distinct ratings of both raters sorted as R sorts their character forms (so 10 sorts before 2,
which matters for the weighted kappas). Rows with a missing value (NaN) are dropped. The variance of the test is
the one under the null hypothesis; the p-value is computed as 2 Φ(−|z|), so small p-values are more accurate than
irr's.
Parameters
ratings: readonly (readonlynumber[])[]
An n × 2 matrix (array of rows): the ratings of the two raters for each subject, with at least 2
complete rows.
Cohen's kappa for two raters, unweighted or weighted, with the z test of kappa = 0. Equivalent to
irr::kappa2(ratings, weight)in R. The ratings are numeric.The levels are the distinct ratings of both raters sorted as R sorts their character forms (so 10 sorts before 2, which matters for the weighted kappas). Rows with a missing value (
NaN) are dropped. The variance of the test is the one under the null hypothesis; the p-value is computed as 2 Φ(−|z|), so small p-values are more accurate than irr's.