Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sim

Simulate response data


Description

Simulate responses from the 1PL, 2PL, or 3PL model

Usage

sim(ip, x = NULL)

Arguments

ip

Item parameters: a matrix with one row per item, and three columns: [,1] item discrimination a, [,2] item difficulty b, and [,3] asymptote c. Can also use the object returned by est.

x

A vector of values of the latent variable ("abilities").

Value

A matrix of responses: persons as rows, items as columns, entries are either 0 or 1, no missing data

Author(s)

Ivailo Partchev

Examples

pa <- cbind(runif(20,.8,2), runif(20,-2.4,2.4), rep(0,50))
rs <- sim(ip=pa, x=rnorm(1000))

irtoys

A Collection of Functions Related to Item Response Theory (IRT)

v0.2.1
GPL (>= 2)
Authors
Ivailo Partchev [aut, cre], Gunter Maris [aut], Tamaki Hattori [ctb]
Initial release
2017-12-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.