DescTools (version 0.99.13)

KrippAlpha: Krippendorff's Alpha Reliability Coefficient

Description

Calculate the alpha coefficient of reliability proposed by Krippendorff.

Usage

KrippAlpha(x, method=c("nominal", "ordinal", "interval", "ratio"))

Arguments

x
classifier x object matrix of classifications or scores
method
data level of x

Value

  • A list with class '"irrlist"' containing the following components:
  • methoda character string describing the method.
  • subjectsthe number of data objects.
  • ratersthe number of raters.
  • irr.namea character string specifying the name of the coefficient.
  • valuevalue of alpha.
  • stat.namehere "nil" as there is no test statistic.
  • statisticthe value of the test statistic (NULL).
  • p.valuethe probability of the test statistic (NULL).
  • cmthe concordance/discordance matrix used in the calculation of alpha
  • data.valuesa character vector of the unique data values
  • levxthe unique values of the ratings
  • nmatchvalthe count of matches, used in calculation
  • data.levelthe data level of the ratings ("nominal","ordinal", "interval","ratio")

References

Krippendorff, K. (1980) Content analysis: An introduction to its methodology. Beverly Hills, CA: Sage.

Examples

Run this code
# the "C" data from Krippendorff
 nmm <- matrix(c(1,1,NA,1,2,2,3,2,3,3,3,3,3,3,3,3,2,2,2,2,1,2,3,4,4,4,4,4,
                 1,1,2,1,2,2,2,2,NA,5,5,5,NA,NA,1,1,NA,NA,3,NA), nrow=4)
 
 # first assume the default nominal classification
 KrippAlpha(nmm)
 
 # now use the same data with the other three methods
 KrippAlpha(nmm, "ordinal")
 KrippAlpha(nmm, "interval")
 KrippAlpha(nmm, "ratio")

Run the code above in your browser using DataCamp Workspace