compute_kappa()¶
- 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
pri_col
String or
RColumn
objectName (or column object) of primary coder’s column.
rel_col
String or
RColumn
objectName (or column object) of reliability coder’s column.
*codes
List
Names of codes to compute scores for.
Returns
Hashes (associative arrays) for kappa values and
CTable
, in that order. Keys are names of the codes. Values are Numeric, and :class`Ctable`, respectively.