Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

calc_posterior_function

Calculate a posterior distribution of theta


Description

Calculate a posterior distribution of theta.

Usage

calc_posterior_function(
  theta_grid,
  item_parm,
  resp,
  ncat,
  model,
  prior,
  prior_parm
)

Arguments

theta_grid

An equi-spaced grid of theta values.

item_parm

A numeric matrix of item parameters.

resp

a numeric vector containing 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).


TestDesign

Optimal Test Design Approach to Fixed and Adaptive Test Construction

v1.2.2
GPL (>= 2)
Authors
Seung W. Choi [aut, cre] (<https://orcid.org/0000-0003-4777-5420>), Sangdon Lim [aut] (<https://orcid.org/0000-0002-2988-014X>)
Initial release
2021-01-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.