Calculate an expected a posterior estimate of theta for one examinee.
theta_EAP(theta_grid, item_parm, resp, ncat, model, prior, prior_parm)
An equi-spaced theta grid.
A numeric matrix of item parameters.
a numeric vector containing item responses.
A numeric vector of the number of response categories by item.
A numeric vector indicating the IRT models of each item (1: 1PL, 2: 2PL, 3: 3PL, 4: PC, 5: GPC, 6: GR).
The type of prior distribution (1: normal, 2: uniform).
A numeric vector of hyperparameters for the prior distribution, c(mu, sigma) or c(ll, ul).