library(PP)
set.seed(10)
# das sind unsere Parameter
diffpar <- sort(round(seq(-4,4, length.out = 20),2))
alphas <- round(rnorm(20, 1, 0.12), 2)
ability <- rnorm(5000)
data_2pl <- PP::sim_4pl(beta = diffpar,
alpha = alphas,
lowerA = 0,
upperA = 1,
theta = ability)
head(data_2pl,3) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14]
[1,] 1 1 1 1 1 1 0 1 1 0 0 0 0 0
[2,] 1 1 0 0 1 1 0 0 0 0 0 0 0 0
[3,] 1 1 1 1 1 1 1 1 0 0 0 0 0 0
[,15] [,16] [,17] [,18] [,19] [,20]
[1,] 0 0 0 0 0 0
[2,] 0 0 0 0 0 0
[3,] 0 0 0 0 0 0



