onyx: onyx

Description Usage Arguments Examples

Description

Starts Onyx

Usage

1
onyx(model = NULL, onyxfile = NULL)

Arguments

model

An OpenMx or lavaan model.

onyyfile

path to Onyx executable (onyx-***.jar). Defaults to NULL. If NULL, Onyx searches local directors, otherwise downloads Onyx from official repository.

Examples

 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)

brandmaier/onyxR documentation built on May 13, 2019, 2:29 a.m.