as_ram: Convert lavaan syntax to RAM specification

Description Usage Arguments Details Value Examples

View source: R/openmx_functions.R

Description

Converts SEM models to RAM models for OpenMx.

Usage

1
as_ram(x, ...)

Arguments

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.

Details

For models specified using lavaan syntax, the procedure is as follows:

  1. Apply lavaanify to the model. The default arguments to lavaanify correspond to those of the sem function.

  2. Convert each row of the resulting lavaan parameter table to a mxPath.

  3. Apply mxModel to the mxPaths to create an OpenMx model using RAM specification

Value

Returns an mxModel.

Examples

1
as_ram("y ~ x")

tidySEM documentation built on Nov. 17, 2021, 1:07 a.m.