itemResp function

itemResp

itemResp

Returns a probabilistic item response, given one ability and one set of item parameters.

itemResp(myAblty, myItem)

Arguments

  • myAblty: A numeric ability.
  • myItem: A single item (a matrix k categories by four (category score, delta dot, tau, discrimination).

Returns

A numeric score, usually an integer in the range 0, 1, 2, ..., k-1. This is taken from the first column of the matrix of item parameters so may also contain a numeric score.

Examples

myItem <- matrix(c(0, 0, 0, 0, 1, 1, 0, 1), ncol = 4, byrow = TRUE) itemResp(0, myItem)
  • Maintainer: Dan Cloney
  • License: GPL-3
  • Last published: 2025-02-19