sim.mrm: Generating data matrices conforming to a mixed Rasch model
Description
This function generates data matrices conforming to a mixed Rasch model (Rost 1990). Both, person and item parameters may be provided by the user. Otherwise, person parameters are randomly drawn from a standard normal distribution; random equidistant partitions of the interval [-2, 2] are used as item parameters. Class membership of each object is based on a realization of a multinomial random variable with sample size and class proportions as parameters (see Preinerstorfer and Formann 2011 for details).
Matrix of item (easiness) parameters. Rows indicate items, columns indicate classes. If no parameters are provided by the user, random permutations of an equidistant partition of the interval [-2, 2] are used in each class.
pers.para
Vector of person parameters. If no parameters are provided by the user, person parameters are drawn from a standard normal distribution.
seed
Seed value.
Value
References
Preinerstorfer, D. and Formann, A. K. (2012)
Parameter recovery and model selection in mixed Rasch models.
British Journal of Mathematical and Statistical Psychology, 65, 251-262.
Rost (1990).
Rasch models in latent classes: An integration of two approaches to item analysis.
Applied Psychological Measurement, 14, 271-282.