Simulate data given the values of the parameters for thresholds, loadings and latent correlations
Usage
sim_data(SAMPLE_SIZE, LOADINGS, THRESHOLDS, LATENT_COV, SEED = 123)
Arguments
- SAMPLE_SIZE
Number of observations to simulate.
- LOADINGS
Matrix of loadings, with dimensions \(p*q\).
- THRESHOLDS
Vector of thresholds fo a single item.
It is assumed to be the same for all the items.
- LATENT_COV
Latent correlation matrix. Dimension \(q*q\).
- SEED
Numeric seed for random generation.