simulate_congeneric | R Documentation |
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
)
n |
Number of observations. |
k |
Size of matrix or number of testlets. |
sigma |
Vector of error standard deviations.
Repeated to have |
lambda |
Vector of factor loadings. Repeated to have |
latent |
Distribution of the latent variable. |
error |
Distribution of the error variable. |
Covariance matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.