Re: [R] simulation data with dichotomous varuables

2014-08-10 Thread William Revelle
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

[R] simulation data with dichotomous varuables

2014-08-04 Thread thanoon younis
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