Error when running the demo script 'ThreeFactorScale2Test.R'

Posted on
Picture of user. trinewa Joined: 11/30/2009

Hi
When running the demo script 'ThreeFactorScale2Test.R' (http://openmx.psyc.virginia.edu/repoview/1/trunk/models/passing) on OpenMx version 1.1.12 I get the following error message:
Error in mxPath(from = latents1, to = indicators1, arrows = 1, connect = "all.pairs", :
unused argument(s) (connect = "all.pairs")

I guess this is the part of the script where the error appears:

threeFactorOrthoRaw1 <- mxModel("threeFactorOrthogonal",
type="RAM",
manifestVars=indicators,
latentVars=latents,
mxPath(from=latents1, to=indicators1,
arrows=1, all=TRUE,
arrows=1, connect="all.pairs",
free=TRUE, values=.2,
labels=loadingLabels1),

From earlier discussion threads I guess this has something to do with the 'all.pairs' and all=TRUE statements, but could someone please help me find the correct way to script this?

Replied on Tue, 01/31/2012 - 06:53
Picture of user. tbates Joined: 07/31/2009

Hi Trini,
the script is fine, you just need to update OpenMx

just execute this in your R console (gets the hot-off-press version, but that's running faster too...)

install.packages('OpenMx', repos='http://openmx.psyc.virginia.edu/testing/')

Replied on Tue, 01/31/2012 - 09:01
Picture of user. mspiegel Joined: 07/31/2009

Also, pulling scripts from the directory (http://openmx.psyc.virginia.edu/repoview/1/tags/stable-1.1/models/passing I mean http://openmx.psyc.virginia.edu/svn/tags/stable-1.1/models/passing) will work when running the OpenMx 1.1 release.