#############################################################################
## EXAMPLE 1: Simulation of data from a Rasch model (alpha_1 = alpha_2 = 0)
#############################################################################
base::set.seed(9765)
N <- 500 # number of persons
I <- 11 # number of items
b <- base::seq( -2 , 2 , length=I )
dat <- sim.raschtype( stats::rnorm( N ) , b )
base::colnames(dat) <- base::paste0( "I" , 1:I )
Run the code above in your browser using DataLab