Calculate an empirical Bayes estimate of theta for a single item.
theta_EB_single(
nx,
theta_init,
theta_prop,
item_parm,
resp,
ncat,
model,
prior,
prior_parm
)
The number of MCMC draws.
A value for initial estimate of theta.
SD of the proposal distribution.
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).
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).