The following model has been updated in the /demo directory, but not in the documentation. The AE model should be created by modifying the sub-models. On the documentation page, currently the super-model is being modified to create the AE model (this doesn't work).
http://openmx.psyc.virginia.edu/docs/OpenMx/latest/Examples_Path.html#ace-model-a-twin-analysis
#1
Log in or register to post comments
#2
Log in or register to post comments
#3
mzModel <- mxModel(mzModel,
mxPath(from=c("A1","C1","E1"), to="bmi1", arrows=1, free=c(T,F,T), values=c(.6,0,.6), label=c("a","c","e")),
mxPath(from=c("A2","C2","E2"), to="bmi2", arrows=1, free=c(T,F,T), values=c(.6,0,.6), label=c("a","c","e")))
this change to the model can be put more succinctly:
mzModel <- mxModel(mzModel,
mxPath(from=c("C1","C2"), to=c("bmi1","bmi2"), arrows=1, free=F, values=0, label="c"))
and likewise for the dzModel. It's still a bit more wordy than Mx1's "Drop Y 1 1 1" or the desired OpenMx command mxDrop(mzModel,"c"). If such syntax doesn't automatically propagate across models (which would be a problem for the heavy duty multiple group users) then mxDrop(list(mzModel,dzModel),"c") might be useful.
Log in or register to post comments
#4
Log in or register to post comments