View source: R/helperFunctions.R
makeRestrictionsLavFriendly | R Documentation |
This function is currently orphaned, but we keep it just in case.
makeRestrictionsLavFriendly(model)
model |
|
This function transforms a lavaan
model string into a model string that works reliably
when both equality constrains and value constrains are imposed on the same parameters.
lavaan
cannot reliably handle this case, e. g., "a == b \\n a == 0"
will not always work.
The solution is to drop the equality constraint and rather apply
the value constraint on each equality constrained parameter, e. g. "a == 0 \n b == 0"
will work.
model with lavaan
-friendly constrains
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.