| as_ram {tidySEM} | R Documentation |
Convert lavaan syntax to RAM specification
Description
Converts SEM models to RAM models for
OpenMx.
Usage
as_ram(x, ...)
Arguments
x |
An object for which a method exists, such as a |
... |
Parameters passed on to other functions. |
Details
For models specified using lavaan syntax, the procedure is as follows:
Apply
lavaanifyto themodel. The default arguments tolavaanifycorrespond to those of thesemfunction.Convert each row of the resulting lavaan parameter table to a
mxPath.Apply
mxModelto themxPaths to create anOpenMxmodel using RAM specification
Value
Returns an mxModel.
Examples
as_ram("y ~ x")
[Package tidySEM version 0.2.7 Index]