simulateNLSEM: simulate data from lavModel object

View source: R/simulateData.R

simulateNLSEMR Documentation

simulate data from lavModel object

Description

simulate data from lavModel object

Usage

simulateNLSEM(
  n,
  lavModel,
  appendLVs = FALSE,
  lavModel_attributes = NULL,
  matrices = NULL,
  seed = NULL
)

Arguments

n

sample size

lavModel

lavModel object

appendLVs

logical whether latent variables should be observed. Default to FALSE. (For developmental purposes)

lavModel_attributes

attributes of the lavModel object. If NULL, this is computed from lavModel. Default to NULL.

matrices

computed matrices for simulation. If NULL, this is computed from lavModel and lavModel_attributes. Default to NULL.

seed

a seed for reproducability. Default to NULL.

Value

Returns a data.frame of a simulated NLSEM.


powerNLSEM documentation built on Sept. 27, 2024, 5:10 p.m.