sim_2PL: Simulate item responses from the 2PL.

Description Usage Arguments Value

Description

Simulate item responses from the 2PL.

Usage

1
sim_2PL(parms, theta)

Arguments

parms

a 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 vector of latent traits.

Value

length(theta) by nrow(parms) matrix of binary responses.


peterhalpin/cirt documentation built on May 25, 2019, 1:50 a.m.