calc_obs_agree: Calculate observed agreement and confidence interval

View source: R/calc_obs_agree.R

calc_obs_agreeR Documentation

Calculate observed agreement and confidence interval

Description

This is really just a wrapper for the irr::agree() function from that package, but I wanted to calculate the confidence interval also.

Usage

calc_obs_agree(data, ..., alpha = 0.05, tolerance = 0)

Arguments

data

A data frame or tibble, n subjects (rows) and m raters (columns)

...

Variables or columns of ratings

alpha

Numeric; two-sided type one error, default = 0.05

tolerance

Used in the irr::agree() function; number of successive rating categories that should be regarded as rater agreement (see details).

Details

Missing data are omitted in a listwise way. Using extended percentage agreement (tolerance!=0) is only possible for numerical values. If tolerance equals 1, for example, raters differing by one scale degree are interpreted as agreeing.

Value

A tibble with the following columns

N

Number of subjects

po

Percent agreement among raters

se_po

Standard error of the proportion

conf_low

Lower asymptotic confidence interval

conf_high

Upper asymptotic confidence interval

Examples

library(irr)
data("video")
calc_obs_agree(data = video, rater1:rater4)
calc_obs_agree(data = video, rater1:rater2)

emilelatour/lamisc documentation built on May 10, 2024, 8:38 a.m.