.SEMFromLavaan | R Documentation |
internal function. Translates an object of class lavaan to the internal model representation.
.SEMFromLavaan(
lavaanModel,
whichPars = "est",
fit = TRUE,
addMeans = TRUE,
activeSet = NULL,
dataSet = NULL,
transformations = NULL,
transformationList = list(),
transformationGradientStepSize = 1e-06
)
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 |
Object of class Rcpp_SEMCpp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.