compute_kappa(pri_col, rel_col, *codes)¶
Computes Cohen’s kappa for a primary and reliability column. Cells between the two columns are matched by their onset time. Computes a contingency table and kappa score for each specified code.
Parameter Type Description
Name (or column object) of primary coder’s column.
Name (or column object) of reliability coder’s column.
List Names of codes to compute scores for.
Hashes (associative arrays) for kappa values and
CTable, in that order. Keys are names of the codes. Values are Numeric, and :class`Ctable`, respectively.