Converts SEM models to RAM models for
OpenMx
.
as_ram(x, ...)
An object for which a method exists, such as a tidy_sem
object, or character vector describing the user-specified model using
the lavaan model syntax.
Parameters passed on to other functions.
Returns an mxModel
.
For models specified using lavaan syntax, the procedure is as follows:
as_ram("y ~ x")
#> MxModel 'model'
#> type : RAM
#> $matrices : 'A', 'S', 'F', and 'M'
#> $algebras : NULL
#> $penalties : NULL
#> $constraints : NULL
#> $intervals : NULL
#> $latentVars : none
#> $manifestVars : 'y' and 'x'
#> $data : NULL
#> $submodels : NULL
#> $expectation : MxExpectationRAM
#> $fitfunction : MxFitFunctionML
#> $compute : NULL
#> $independent : FALSE
#> $options :
#> $output : FALSE