accuracy: Compute Krippendorff's Accuracy

Description Usage Arguments Value

View source: R/accuracy.R

Description

Similar input and warnings as [replicability()]. TODO(julien): figure out how to merge both functions in the same help page.

Usage

1
2
3
4
5
6
7
8
accuracy(
  coders,
  standard,
  unit_from = "unit",
  measurement_from = "measurement",
  frequency_from = NULL,
  return_by_unit = FALSE
)

Arguments

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.

Value

accuracy

Krippendorff's Alpha accuracy index

De

Expected disagreement

Do

Overall observed disagreement accross all units

by_unit

(Only if return_by_unit = TRUE) Per-unit contributions


jucor/krippendorff documentation built on May 4, 2021, 6:06 p.m.