Learn R Programming

lessSEM (version 1.5.5)

simulateExampleData: simulateExampleData

Description

simulate data for a simple CFA model

Usage

simulateExampleData(
  N = 100,
  loadings = c(rep(1, 5), rep(0.4, 5), rep(0, 5)),
  percentMissing = 0
)

Value

data set for a single-factor CFA.

Arguments

N

number of persons in the data set

loadings

loadings of the latent variable on the manifest observations

percentMissing

percentage of missing data

Examples

Run this code
y <- lessSEM::simulateExampleData()

Run the code above in your browser using DataLab