View source: R/openmx_functions.R
| as_ram | R Documentation |
Converts SEM models to RAM models for
OpenMx.
as_ram(x, ...)
x |
An object for which a method exists, such as a |
... |
Parameters passed on to other functions. |
For models specified using lavaan syntax, the procedure is as follows:
Apply lavaanify to the model. The default
arguments to lavaanify correspond to those of the
sem function.
Convert each row of the resulting lavaan parameter table to a
mxPath.
Apply mxModel to the mxPaths to create
an OpenMx model using RAM specification
Returns an mxModel.
as_ram("y ~ x")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.