Learn R Programming

TestDesign (version 1.0.2)

theta_FB_single: Calculate a fully Bayesian estimate of theta for a single item

Description

Calculate a fully Bayesian estimate of theta for a single item.

Usage

theta_FB_single(
  nx,
  theta_init,
  theta_prop,
  item_mcmc,
  item_init,
  resp,
  ncat,
  model,
  prior,
  prior_parm
)

Arguments

nx

The number of MCMC draws.

theta_init

A value for initial estimate of theta.

theta_prop

SD of the proposal distribution.

item_mcmc

A matrix of sampled item parameters for a single item.

item_init

A matrix of item parameter estimates (one row per item).

resp

A numeric vector of item responses.

ncat

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

model

A numeric vector indicating the IRT models of each 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).