Learn R Programming

conquestr (version 1.4.5)

itemResp: itemResp

Description

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

Usage

itemResp(myAblty, myItem)

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.

Arguments

myAblty

A numeric ability.

myItem

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

Examples

Run this code
myItem <- matrix(c(0, 0, 0, 0, 1, 1, 0, 1), ncol = 4, byrow = TRUE)
itemResp(0, myItem)

Run the code above in your browser using DataLab