simulateExampleData: simulateExampleData

View source: R/utils.R

simulateExampleDataR Documentation

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
)

Arguments

N

number of persons in the data set

loadings

loadings of the latent variable on the manifest observations

percentMissing

percentage of missing data

Value

data set for a single-factor CFA.

Examples

y <- lessSEM::simulateExampleData()

lessSEM documentation built on May 29, 2024, 7:10 a.m.