powered by
simulate data for a simple CFA model
simulateExampleData( N = 100, loadings = c(rep(1, 5), rep(0.4, 5), rep(0, 5)), percentMissing = 0 )
data set for a single-factor CFA.
number of persons in the data set
loadings of the latent variable on the manifest observations
percentage of missing data
y <- lessSEM::simulateExampleData()
Run the code above in your browser using DataLab