search for: respres

Displaying 1 result from an estimated 1 matches for "respres".

Did you mean: despres
2012 Dec 09
1
about loop, 10 times, 10 matrix
Dear all: I have simulated ability(500 examinees) and difficulty(40 items). as: N <- 500 theta <- rnorm( N ) I <- 40 b <- seq( -2 , 2 , len=I ) p1 <- plogis( outer( theta, b, "-" ) ) I want to simulate 10 responses matrix through this syntax: respR <- 1 * ( p1 > matrix( runif( N*I ) , nrow=N , ncol=I ) ) I tried this: n<-10 respR<-list() for(i in 1:n){