Learn R Programming

immer (version 0.4-0)

immer_agree2: Agreement Statistics for 2 Raters

Description

Some agreement statistics for two raters, including raw agreement, Scott's Pi, Cohen's Kappa, Gwets AC1 and Aickens Alpha (see Gwet, 2010).

Usage

immer_agree2(y, w = rep(1, nrow(y)), symmetrize = FALSE, tol = c(0, 1))

## S3 method for class 'immer_agree2':
summary(object, digits=3,...)

Arguments

y
Data frame with responses for two raters
w
Optional vector of frequency weights
symmetrize
Logical indicating whether contingency table should be symmetrized
tol
Vector of integers indicating tolerance for raw agreement
object
Object of class immer_agree2
digits
Number of digits after decimal for rounding
...
Further arguments to be passed

Value

  • List with entries
  • agree_rawRaw agreement
  • agree_statsAgreement statistics
  • agree_tableContingency table
  • margMarginal frequencies
  • PeExpected chance agreement probabilities
  • PHProbabilities for hard-to-classify subjects according to Aicken
  • nobsNumber of observations

References

Gwet, K. L. (2010). Handbook of Inter-Rater Reliability. Gaithersburg: Advanced Analytics.

Examples

Run this code
#############################################################################
# EXAMPLE 1: Dataset in Schuster & Smith (2006)
#############################################################################

data(data.immer08)
dat <- data.immer08

y <- dat[,1:2]
w <- dat[,3]
# agreement statistics
res <- immer_agree2( y = y , w = w )
summary(res)
# extract some output values
res$agree_stats
res$agree_raw

Run the code above in your browser using DataLab