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

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)
#>                 BCIlow.2.5% agreement.overall agreement 
#>                   0.5000000                   0.6333333 
#>               BCIhigh.97.5% 
#>                   0.7669444