I am still getting used to OpenMx, so this may be a stupid question. Say I have a single factor ("G") measurement model, in a mxModel object called "mMeasure". Is it now possible to use the mMeasure object as part of a structural model? I imagine something like (pseudocode):
mStructure <- mxModel("Structure",
manifestVars = "Y", latentVars = "G",
mxPath(from = "G", to = "Y"),
## other model stuff)
mFull <- mxModel("Overall",
type = "RAM",
mxData(mydata[, c("all", "manifest", "variables", "for any submodel")], type = "raw"),
mMeasure,
mStructure)
My general hope being to work with one model, and once I have it in a form I want, use it in another model. I have tried several variants of the above putting data in the submodels and/or overall model without success. I am not looking for a worked example (though awesome if there is one lying around), just a "this can be done, keep looking" or "no head smack what were you thinking?". If I know its doable, once I get it worked out, I will post a working example for archive purposes.