simDRM: simulate data according to Rasch model

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/simDRM.R

Description

With this function data sets according to the dichotomous Rasch model (DRM) are simulated

Usage

1
simDRM(itempar, persons = 500, seed = NULL)

Arguments

itempar

a vector with item difficulty parameters

persons

number of persons for the generated data set

seed

a seed for the random number generated can optionally be set

Details

Data are generated with category values 0 and 1.

Person parameters are generated by a standard normal distribution.

Value

datmat

simulated data set

true_itempar

the fixed item parameters according to the input

true_perspar

the fixed person parameters

Author(s)

Christine Hohensinn

References

Fischer, G. H. (1974). Einfuehrung in die Theorie psychologischer Tests [Introduction to test theory]. Bern: Huber.

See Also

simMPRMsimCRSM

Examples

1
2
3
4
5
6
7
8
#set item parameters
item_p <- c(-1.5,-0.3,0,0.3,1.5)

#number of persons
pn <- 500

#simulate data set
simdatD <- simDRM(item_p, pn)

pcIRT documentation built on May 1, 2019, 11:09 p.m.