generate_theta_mvn: Generate latent trait vectors from a multivariate normal...

View source: R/sim-utils.R

generate_theta_mvnR Documentation

Generate latent trait vectors from a multivariate normal distribution

Description

When D > 1, uses MASS::mvrnorm with the supplied correlation matrix. When D == 1, uses standard normal draws.

Usage

generate_theta_mvn(N, D, Corr)

Arguments

N

Number of persons.

D

Number of latent dimensions.

Corr

A D \times D correlation matrix.

Value

An N \times D numeric matrix of latent trait values.


ForceChoice documentation built on Sept. 13, 2026, 1:06 a.m.