run_mx {tidySEM} | R Documentation |
Run as OpenMx model with sensible defaults
Description
This convenience function runs objects for which a method exists
using OpenMx, with sensible defaults. It is intended for use with
tidySEM
. For instance, it will convert a tidySEM
object to
a mxModel
and run it, and it will try to ensure convergence for
mixture models created using mx_mixture
.
Knowledgeable users may want to run models manually.
Usage
run_mx(x, ...)
Arguments
x |
An object for which a method exists. |
... |
Parameters passed on to other functions. |
Value
Returns an mxModel
with free parameters updated
to their final values.
Examples
df <- iris[1:3]
names(df) <- paste0("X_", 1:3)
run_mx(measurement(tidy_sem(df), meanstructure = TRUE))
[Package tidySEM version 0.2.7 Index]