Learn R Programming

emreliability (version 1.0.0)

csem_compound_binomial: CSEM, CSSEM, and Reliability under the Compound Binomial Model

Description

Compute the CSEM, CSSEM, and reliability coefficients for raw scores and scaled scores using the full compound binomial error model.

Usage

csem_compound_binomial(x, s, ct = NULL, w = NULL)

Value

A list containing:

x

Raw total scores (row sums of x).

total_scale

If ct is provided, the composite scale score for each examinee.

csem

CSEM on the raw-score metric for each examinee.

cssem

If ct is provided, CSSEM on the scale-score metric.

reliability_raw

Reliability coefficient for raw scores.

reliability_scale

If ct is provided, reliability coefficient for scale scores.

Arguments

x

Examinee-by-item matrix/data frame of item responses, ordered by stratum.

s

Numeric vector of number of items in each stratum. Sum(s) must equal ncol(x).

ct

Optional conversion table with maxZ + 1 rows. The second column is the scale score corresponding to composite score Z = 0, 1, ..., maxZ.

w

Optional numeric vector of weights for each stratum. Defaults to 1 per stratum.

Examples

Run this code
data(data.m)
data(ct.m)
csem_compound_binomial(data.m, c(13, 12, 6))
# \donttest{
csem_compound_binomial(data.m, c(13, 12, 6), ct.m)
# }

Run the code above in your browser using DataLab