simTheta {maat} | R Documentation |
Simulate theta values
Description
simTheta
is a function for generating a theta matrix based on the given
sample size, mean, standard deviation, and correlation matrix.
Usage
simTheta(N, mean_v, sd_v, cor_v)
Arguments
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. |
Details
simTheta
calls mvrnorm
internally.
Value
a theta matrix.
Examples
o <- simTheta(
N = 100,
mean_v = c(0, 0, 0),
sd_v = c(1, 1, 1),
cor_v = diag(1, 3)
)
[Package maat version 1.1.0 Index]