Learn R Programming

rel (version 1.4.2)

bags: Bennett, Alpert, and Goldstein's S

Description

Calculates S as an index of agreement for two observations of nominal scale data.

Usage

bags(data = NULL, kat = NULL, conf.level = 0.95)

Arguments

data

A matrix with n subjects and two observations (n*2 matrix)

kat

Number of possible categories

conf.level

Confidence level of the interval.

Value

method

Analysis name

obs

Number of observations

sample

Sample size

est

Point estimate

se

Standard error

lb

Lower confidence boundary

ub

Upper confidence boundary

cont.table

contingency table

data

analyzed data

References

Bennett, E. M., Alpert, R., Goldstein, A. C. (1954). Communications through limited-response questioning. Public Opinion Quarterly, 18(3), 303-308.

Examples

Run this code
# NOT RUN {
#Sample data: 200 subjects and one 5-category item.
data <- cbind(sample(1:5,200, replace=TRUE),sample(1:5,200, replace=TRUE))

#Analysis
bags(data=data, kat=5, conf.level=0.95)
# }

Run the code above in your browser using DataLab