Description Usage Arguments Examples
Starts Onyx executable to display a path diagram from either an OpenMx or lavaan model representation.
1 |
model |
An OpenMx or lavaan model. Defaults to NULL. If omitted, Onyx is started with an empty desktop, otherwise the specified model is rendered as path diagram |
onyyfile |
path to Onyx executable (onyx-***.jar). Defaults to NULL. If NULL, Onyx searches local directors, otherwise downloads Onyx from official repository. |
mode |
batch operation mode (experimental) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | require(OpenMx)
data(demoOneFactor)
manifests <- names(demoOneFactor)
latents <- c("G")
factorModel <- mxModel("One Factor",
type="RAM",
manifestVars = manifests,
latentVars = latents,
mxPath(from=latents, to=manifests),
mxPath(from=manifests, arrows=2),
mxPath(from=latents, arrows=2,
free=FALSE, values=1.0),
mxData(cov(demoOneFactor), type="cov",
numObs=500))
fit <- mxRun(factorModel)
## Not run:
onyx(fit)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.