Learn R Programming

IRTpp (version 0.2.6.1)

simulateTest.file: This function simulates tests according to a IRT model.

Description

Simulates a test according to a model and saves it to files, can be slow due to disk usage.

Usage

simulateTest.file(model = "2PL", items = 10, individuals = 1000, reps = 1, dims = 1, filename = "test", directory = NULL, boundaries = NULL, itempars = NULL, latentTraits = NULL, seed = NULL, verbose = F, threshold = 0)

Arguments

model
A string with the model to simulate, please refer to the model documentation in irtpp documentation.
items
the number of items to simulate
individuals
the number of individuals to simulate
reps
The number of tests to generate with this settings
dims
Optional. The number of dimensions to simulate in the test if the model is multidimensional TODO (Untested in multidimensional, please do not use this parameter for now)
filename
A name to give the tests.
directory
The directory to output the tests
boundaries
Optional. The kind of boundaries that are specified for the parameters.
itempars
Optional. Item parameters to be used in the simulation. When the parameters are not generated, the item parameters must be specified.
latentTraits
A set of latent traits to set them for the individuals
seed
Optional. Seed to use to generate all the data
verbose
Optional. If true, output is made to know the status of the algorithm
threshold
The threshold that indicates the boundaries on the individual scores (to avoid nearly perfect or nearly )

Value

A List with the model, the seed, the item parameters and the test.

See Also

simulateTest

Examples

Run this code
# simulateTest.file("3PL", 20, 300)

Run the code above in your browser using DataLab