Published on *OpenMx* (http://openmx.psyc.virginia.edu)

By *cgoldammer*

Created *04/07/2010 - 18:29*

Wed, 04/07/2010 - 18:29 — cgoldammer [1]

Hi,

I have a problem with the path notation. There's two factors. Their errors are freely correlated. Also, the factors are linked. The problem is: the S matrix depends on the order of arguments for mxModel. In one notation, S is over-ridden.

I'd be happy about any suggestions! Regards, Chris

Here's the code:

latentVars=c("t1","t2")

path_error=mxPath(

from=latentVars,

arrows=2,

all=T,

free=T

)

path_factor=mxPath(

from=latentVars[1],

to=latentVars[2],

arrows=1,

free=T

)

# The S matrix should be identical in those models (the arguments differ only in their order), but they aren't:

model_1 <- mxModel(type='RAM',latentVars=latentVars,path_error,path_factor)

model_2 <- mxModel(type='RAM',latentVars=latentVars,path_factor,path_error)

model_1$S@free

model_2$S@free

**Links:**

[1] http://openmx.psyc.virginia.edu/users/cgoldammer

[2] http://openmx.psyc.virginia.edu/thread/500

[3] http://openmx.psyc.virginia.edu/thread/480

[4] http://openmx.psyc.virginia.edu/forums/openmx-help/openmx-general-help