View source: R/sim_functions.R
simTheta | R Documentation |
simTheta
is a function for generating a theta matrix based on the given
sample size, mean, standard deviation, and correlation matrix.
simTheta(N, mean_v, sd_v, cor_v)
N |
the number of examinees. |
mean_v |
a vector containing the mean of each dimension. |
sd_v |
a vector containing the standard deviation of each dimension. |
cor_v |
a correlation matrix. |
simTheta
calls mvrnorm
internally.
a theta matrix.
o <- simTheta( N = 100, mean_v = c(0, 0, 0), sd_v = c(1, 1, 1), cor_v = diag(1, 3) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.