Learn R Programming

TestDesign (version 1.2.4)

theta_EAP_matrix: Calculate EAP estimates of theta for a group of examinees

Description

Calculate expected a posteriori estimates of theta for a group of examinees.

Usage

theta_EAP_matrix(theta_grid, item_parm, resp, ncat, model, prior, prior_parm)

Arguments

theta_grid

An equi-spaced theta grid.

item_parm

A numeric matrix of item parameters.

resp

A numeric matrix of item responses.

ncat

A numeric vector of the number of response categories by item.

model

A numeric vector of the IRT model by item (1: 1PL, 2: 2PL, 3: 3PL, 4: PC, 5: GPC, 6: GR).

prior

The type of prior distribution (1: normal, 2: uniform).

prior_parm

A numeric vector of hyperparameters for the prior distribution, c(mu, sigma) or c(ll, ul).