Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


semPower (version 2.1.1)

doSim: doSim

Description

Generates random data from population variance-covariance matrix and population means, either from a multivariate normal distribution, or using one of various approaches to generate non-normal data.

Usage

doSim(
  r,
  simData,
  isMultigroup = FALSE,
  modelH0,
  modelH1,
  lavOptions,
  lavOptionsH1
)

Value

list

Arguments

r

replication id

simData

list of datafiles

isMultigroup

multigroup flag

modelH0

lavaan model string defining the (incorrect) analysis model.

modelH1

lavaan model string defining the comparison model. If omitted, the saturated model is the comparison model.

lavOptions

a list of additional options passed to lavaan, e. g., list(estimator = 'mlm') to request robust ML estimation

lavOptionsH1

lavoptions when fitting modelH1. If NULL, the same as lavOptions.