This is an internal function exported for those people who know what they are doing.
imxModelBuilder(
model,
lst,
name,
manifestVars,
latentVars,
productVars,
submodels,
remove,
independent
)
model
lst
name
manifestVars
latentVars
productVars
submodels
remove
independent
TODO: It probably makes sense to split this into separate methods. For example, modelAddVariables and modelRemoveVariables could be their own methods. This would reduce some cut&paste duplication.