Dear Thanoon,
You might look at the various item simulation functions in the psych package.
In particular, for your problem:
R1 <- sim.irt(10,1000,a=3,low = -2, high=2)
R2 <- sim.irt(10,1000,a=3,low = -2, high=2)
R12 <- data.frame(R1$items,R2$items)
#this gives you 20 items, grouped with high c
Dear R-users
i need your help to solve my problem in the code below, i want to simulate
two different samples R1 and R2 and each sample has 10 variables and 1000
observations so i want to simulate a data with high correlation between
var. in R1 and also in R2 and no correlation between R1 and R2 a
2 matches
Mail list logo