Learn R Programming

TestDesign (version 1.0.1)

calc_likelihood_function: Calculate a likelihood function of theta

Description

Calculate a likelihood function of theta.

Usage

calc_likelihood_function(theta_grid, item_parm, resp, ncat, model)

Arguments

theta_grid

An equi-spaced grid of theta values.

item_parm

A numeric matrix of item parameters.

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).