umxModelNames: Return names of models found within a model

umxModelNamesR Documentation

Return names of models found within a model

Description

umxModelNames returns the names of each model contained in the model provided to it (optionally excluding the out model itself).

Usage

umxModelNames(model, includeOuterModelName = FALSE)

Arguments

model

an OpenMx::mxModel() to search for model names.

includeOuterModelName

FALSE

Value

  • All models names

See Also

  • OpenMx::mxRename(), umxSuperModel()

Other Miscellaneous Utility Functions: install.OpenMx(), libs(), qm(), umx, umxLav2RAM(), umxRAM2Lav(), umxVersion(), umx_array_shift(), umx_find_object(), umx_lower.tri(), umx_msg(), umx_open_CRAN_page(), umx_pad(), umx_print()

Examples

## Not run: 
data(GFF)
mzData = subset(GFF, zyg_2grp == "MZ")
dzData = subset(GFF, zyg_2grp == "DZ")
selDVs = c("gff", "fc", "qol")
m1 = umxCP(selDVs= selDVs, nFac= 1, dzData= dzData, mzData= mzData, sep= "_T", autoRun= TRUE)
m2 = mxRename(m1, "model2")
umxModelNames(m1) # "top" "MZ" "DZ"
umxModelNames(m2) # "top" "MZ" "DZ"

super = umxSuperModel("myModel", m1, m2, autoRun = TRUE)
umxModelNames(super)

plot(super$CP1fac)

## End(Not run)

tbates/umx documentation built on Dec. 14, 2024, 11:28 a.m.