dot-multiGroupSEMFromLavaan: .multiGroupSEMFromLavaan

.multiGroupSEMFromLavaanR Documentation

.multiGroupSEMFromLavaan

Description

internal function. Translates a vector of objects of class lavaan to the internal model representation.

Usage

.multiGroupSEMFromLavaan(
  lavaanModels,
  whichPars = "est",
  fit = TRUE,
  addMeans = TRUE,
  transformations = NULL,
  transformationList = list(),
  transformationGradientStepSize = 1e-06
)

Arguments

lavaanModels

vector with lavaan models

whichPars

which parameters should be used to initialize the model. If set to "est", the parameters will be set to the estimated parameters of the lavaan model. If set to "start", the starting values of lavaan will be used. The latter can be useful if parameters are to be optimized afterwards as setting the parameters to "est" may result in the model getting stuck in a local minimum.

fit

should the model be fitted

addMeans

If lavaanModel has meanstructure = FALSE, addMeans = TRUE will add a mean structure. FALSE will set the means of the observed variables to the average

transformations

string with transformations

transformationList

list for transformations

transformationGradientStepSize

step size used to compute the gradients of the transformations

Value

Object of class Rcpp_mgSEMCpp


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