bags: Bennett, Alpert, and Goldstein's S

Description Usage Arguments Value Author(s) References Examples

Description

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

Usage

1
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

Author(s)

Riccardo Lo Martire

References

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

Examples

1
2
3
4
5
#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)

Example output

Call:
bags(data = data, kat = 5, conf.level = 0.95)

       Estimate    StdErr   LowerCB UpperCB
Const -0.012500  0.034762 -0.081049   0.056

Confidence level = 95%
Sample size = 200

rel documentation built on March 3, 2020, 9:07 a.m.