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
lavaanify
to themodel
. The default arguments tolavaanify
correspond to those of thesem
function.Convert each row of the resulting lavaan parameter table to a
mxPath
.Apply
mxModel
to themxPath
s to create anOpenMx
model using RAM specification
Value
Returns an mxModel
.
Examples
as_ram("y ~ x")
[Package tidySEM version 0.2.7 Index]