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)

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.

Value

a theta matrix.

Details

simTheta calls mvrnorm internally.

Examples

o <- simTheta(
  N      = 100,
  mean_v = c(0, 0, 0),
  sd_v   = c(1, 1, 1),
  cor_v  = diag(1, 3)
)