
Krippendorff's alpha for predefined units
reliability_alpha.RdNative implementation of Krippendorff's alpha (_c_alpha) for the coding
of predefined units, following Krippendorff (2019, section 12.3).
Usage
reliability_alpha(
observations,
method = c("nominal", "ordinal", "interval", "ratio")
)Arguments
- observations
A
subjects x raters(units x observers) matrix or data.frame. Rows are predefined units; columns are observers. Cells contain the value assigned by each observer to each unit (useNAfor missing values).- method
One of
"nominal","ordinal","interval","ratio"– the metric (difference function) fordelta^2_ck. See Krippendorff (2019, section 12.3.3).
Value
A list with elements:
methodCharacter, e.g.
"alpha_nominal".valueNumeric – the overall alpha coefficient.
ci_lower,ci_upperNumeric – confidence interval bounds (always
NAfor alpha; included for uniform output across reliability functions).per_valueFor
method = "nominal": a data.frame with columnsvalue,alpha,ngiving per-category alpha (each category dichotomised against all others) and its marginal countn.c.NULLfor ordered metrics.n_observersNumber of observers (
m).n_unitsNumber of units with pairable values (
m_u >= 2).n_pairableTotal pairable values (
n..).coincidenceThe values-by-values coincidence matrix
o_ck.
References
Krippendorff, K. (2019). Content Analysis: An Introduction to Its Methodology (4th ed.). Sage. doi:10.4135/9781071878781