J: Numerator of penalty used in WML.

Description Usage Arguments Value

View source: R/IRF_functions.R

Description

Computes equation 15 of Magis & Raiche (2012). For 2PL, this is also the derivative of the test info.

Usage

1
J(resp, parms, theta)

Arguments

resp

a matrix or data.frame containing the binary item responses with NA for missing responses (used omit missing responses).

parms

a named list or data.frame with elements parms$alpha and parms$beta corresponding to the discrimination and difficulty parameters of the 2PL model, respectively.

theta

the latent trait.

Value

length(theta) vector of derivatives of test information.


peterhalpin/cirt documentation built on July 15, 2018, 12:42 p.m.