itemResp: itemResp

View source: R/generateHelpers.R

itemRespR Documentation

itemResp

Description

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

Usage

itemResp(myAblty, myItem)

Arguments

myAblty

A numeric ability.

myItem

A single item (a matrix k categories by four (category score, delta dot, tau, discrimination).

Value

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)

conquestr documentation built on March 31, 2023, 6:02 p.m.