powered by
simTheta is a function for generating a theta matrix based on the given sample size, mean, standard deviation, and correlation matrix.
simTheta
simTheta(N, mean_v, sd_v, cor_v)
the number of examinees.
a vector containing the mean of each dimension.
a vector containing the standard deviation of each dimension.
a correlation matrix.
a theta matrix.
simTheta calls mvrnorm internally.
mvrnorm
# NOT RUN { o <- simTheta( N = 100, mean_v = c(0, 0, 0), sd_v = c(1, 1, 1), cor_v = diag(1, 3) ) # }
Run the code above in your browser using DataLab