Calculate a likelihood function of theta.
calc_likelihood_function(theta_grid, item_parm, resp, ncat, model)
An equi-spaced grid of theta values.
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).