Similar input and warnings as [replicability()]. TODO(julien): figure out how to merge both functions in the same help page.
surrogacy( coders, standard, unit_from = "unit", measurement_from = "measurement", frequency_from = NULL, return_by_unit = FALSE )
coders | `data.table` containing the coders. |
---|---|
standard | `data.table` containing the standard. |
unit_from | Name of the column containing the unit ID |
measurement_from | Name of the column containing the measurements |
frequency_from | (Optional) Name of the column containing the frequencies, *if* the data is in the "aggregated" form described above. |
return_by_unit | (default FALSE) If TRUE, return a data.table of per-unit contributions. |
Krippendorff's Alpha surrogacy index
Expected disagreement
Overall observed disagreement accross all units
(Only if return_by_unit = TRUE) Per-unit contributions