run_mx | R Documentation |
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.
run_mx(x, ...)
x |
An object for which a method exists. |
... |
Parameters passed on to other functions. |
Returns an mxModel
with free parameters updated
to their final values.
df <- iris[1:3]
names(df) <- paste0("X_", 1:3)
run_mx(measurement(tidy_sem(df), meanstructure = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.