dot-SEMFromLavaan: .SEMFromLavaan

.SEMFromLavaanR Documentation

.SEMFromLavaan

Description

internal function. Translates an object of class lavaan to the internal model representation.

Usage

.SEMFromLavaan(
  lavaanModel,
  whichPars = "est",
  fit = TRUE,
  addMeans = TRUE,
  activeSet = NULL,
  dataSet = NULL,
  transformations = NULL,
  transformationList = list(),
  transformationGradientStepSize = 1e-06
)

Arguments

lavaanModel

model of class lavaan

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 and compared to the lavaanModel?

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

activeSet

Option to only use a subset of the individuals in the data set. Logical vector of length N indicating which subjects should remain in the sample.

dataSet

optional: Pass an alternative data set to lessSEM:::.SEMFromLavaan which will replace the original data set in lavaanModel.

transformationGradientStepSize

step size used to compute the gradients of the transformations

Value

Object of class Rcpp_SEMCpp


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