CIbootagreement: Bootstrapped confidence interval around the Agreement

View source: R/old.R

CIbootagreementR Documentation

Bootstrapped confidence interval around the Agreement

Description

The confidence interval estimated around the proportion of agreement between 2 or more raters.

Usage

CIbootagreement(data, cat1 = NULL, cat2 = NULL, b = 1000, alpha = 0.05)

Arguments

data

data.frame or table

cat1

A character indicating the category for which specific agreement should be obtained.

cat2

A character indicating the category to which the specific agreement should be compared, if left empty all other categories are used.

b

Number of bootstrap iterations.

alpha

Confidence level; default is 0.95.

Value

A vector giving the lower and upper confidence limit around the probability.

Examples

df <- data.frame(r1=factor(c(1,0,1,0,0,1,1,0,0,0,1,1,0,1,1)),
                 r2=factor(c(1,1,1,1,0,1,1,0,0,0,1,1,0,1,0)),
                 r3=factor(c(1,1,1,0,0,0,1,1,1,0,0,1,0,1,1)),
                 r4=factor(c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)))
CIbootagreement(data=df)



iriseekhout/Agree documentation built on July 28, 2023, 11:24 p.m.