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