Simulate Data from a Structural Equation Model
sdag.RdSimulates a dataset from one or more model formulas using [lavaan::simulateData()]. Multiple formulas supplied through `...` are combined into a single lavaan model specification.
Arguments
- ...
One or more model formulas describing the data-generating model. Each formula must use syntax compatible with [lavaan::simulateData()].
- n
A positive integer indicating the number of observations to simulate. Defaults to `100`.
- standardized
Logical. If `TRUE`, model parameters are interpreted so that the observed variables have unit variances. Passed to the `standardized` argument of [lavaan::simulateData()].
- empirical
Logical. If `TRUE`, the generated sample statistics match the model-implied population values exactly. Passed to the `empirical` argument of [lavaan::simulateData()].