Learn R Programming

statpsych (version 1.7.0)

ci.agree: Confidence interval for a G-index of agreement

Description

Computes an adjusted Wald confidence interval for a G-index of agreement between two polychotomous ratings. This function requires the number of objects that were given the same rating by both raters. The G-index corrects for chance agreement. The G-index is a better measure of agreement than Cohen's kappa, and the confidence interval for the G-index used here has better small-sample properties than the confidence interval for Cohen's kappa.

Usage

ci.agree(alpha, n, f, k)

Value

Returns a 1-row matrix. The columns are:

  • Estimate - maximum likelihood estimate of G-index

  • SE - standard error

  • LL - lower limit of the adjusted Wald confidence interval

  • UL - upper limit of the adjusted Wald confidence interval

Arguments

alpha

alpha level for 1-alpha confidence

n

sample size

f

number of objects rated in agreement

k

number of rating categories

References

Bonett2022statpsych

Examples

Run this code
ci.agree(.05, 100, 80, 4)

# Should return:
#  Estimate         SE        LL        UL
# 0.7333333 0.05333333 0.6132949 0.8226025


Run the code above in your browser using DataLab