Calculate a likelihood value of theta.
calc_likelihood(x, item_parm, resp, ncat, model)
Numeric. A single theta value.
A numeric matrix of item parameters.
A numeric vector of 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).