You are here

Update ACE model in documentation

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).

https://openmx.ssri.psu.edu/docs/OpenMx/latest/Examples_Path.html#ace-model-a-twin-analysis

Reporter: 
Created: 
Fri, 08/21/2009 - 11:23
Updated: 
Mon, 09/28/2009 - 22:34

Comments

This has been fixed in r779 of the repository. Some magic needs to happen to get the fix to the website.

With respect to

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.