Krippendorff.jl
Welcome to Krippendorff.jl,
this package provides a pure Julia implementation of the Krippendorff's alpha inter-rater reliability measure.
Krippendorff
— ModuleKrippendorff.jl
Krippendorff's alpha in Julia
This package aims to provide easy access to the afforementioned inter-rater reliability measure. The main entry point (and sole exported function) is krippendorffs_alpha
, which provides an easy-to-use interface for most requirements. alpha
is the unexported alias for krippendorffs_alpha
, allowing the usage of Krippendorff.alpha
.
Alpha is used to quantify the amount of agreement or disagreement of a number of raters that assign values (responses) to different units (subjects/tasks) according to a common code. It is conceptually similar to other measures like Cohen's κ, Scott's π, Fleiss' κ or intra-class correlation, but is more generally applicable. Alpha can be computer for any number of raters and units, allows for missing values, is corrected for small sample sizes and works with various levels of measurement, which govern the distance metric that is used in the computation. Thus, alpha works with nominal, ordinal, interval, (bi)polar, circular and ratio variables. (and possibly more)
The high-level function will just work with most data. Inputs are required to either be iterable julia objects or satisfy the Tables.jl
interface (as determined by Tables.istable
), in which case they will be accessed via Tables.rows
or Tables.columns
. Missing values are handled and the algorithm tries to determine the set of possible responses automatically. Depending on these, one of currently two computational backends is choosen to compute alpha. Thin wrappers around these backends with proper documentation are compute_alpha_generical
and compute_alpha_with_coincidences
.
References
- Krippendorff, Klaus. (2011). Computing Krippendorff's Alpha-Reliability. Retrieved from https://repository.upenn.edu/asc_papers/43
- Hayes, Andrew & Krippendorff, Klaus. (2007). Answering the Call for a Standard Reliability Measure for Coding Data. Communication Methods and Measures. 1. 77-89. 10.1080/19312450709336664.
Most of the code was modeled directly after Krippendorffs explanations in the first reference above.