Simulate observations from a one-factor model with specified latent variable and error variable distributions. The error terms are not correlated, hence the model is congeneric.
simulate_congeneric(
n,
k,
sigma = 1,
lambda = 1,
latent = stats::rnorm,
error = stats::rnorm
)
Covariance matrix.
Number of observations.
Size of matrix or number of testlets.
Vector of error standard deviations.
Repeated to have k
elements.
Vector of factor loadings. Repeated to have k
elements.
Distribution of the latent variable.
Distribution of the error variable.