Learn R Programming

LatentREGpp (version 0.2.2)

simulate_polytomous: Polytomous data simulation

Description

This function generates dichotomous test of an specified dimension and size. The items per dimension are specified in the size.cluster vector, and the individuals are specified in sample.size. The amout of categories of each item is determined with ncatgs.

Usage

simulate_polytomous(dim.data = 1, sample.size = 1000, size.cluster = c(20), ncatgs = rep(4, 20), seed_data = 5000L, model = "2PL")

Arguments

dim.data
Data dimension
sample.size
Size of the population that will be simulated
size.cluster
Vector containing the number of items by dimension
ncatgs
Vector containing the number of categories for each item
seed_data
Seed for simulation
model
the model used to generate the test. It can have values of "1PL", "2PL" or "3PL".

Value

list with the simulated data, the information of the item parameters and the individual parameters

See Also

simulate_polytomous