This function will label all the free parameters in a (non-RAM) OpenMx mxModel
nb: We don't assume what each matrix is for. Instead, the function just sticks labels like "a_r1c1" into each cell
i.e., matrixname _ r rowNumber c colNumber
xmuLabel_MATRIX_Model(model, suffix = "", verbose = TRUE)
a matrix-style mxModel to label
a string to append to each label
how much feedback to give
- The labeled mxModel
End users should just call umxLabel
Other xmu internal not for end user: umxModel
,
xmuHasSquareBrackets
,
xmuLabel_Matrix
,
xmuLabel_RAM_Model
, xmuMI
,
xmuMakeDeviationThresholdsMatrices
,
xmuMakeOneHeadedPathsFromPathList
,
xmuMakeTwoHeadedPathsFromPathList
,
xmuMaxLevels
, xmuMinLevels
,
xmuPropagateLabels
,
xmu_check_levels_identical
,
xmu_dot_make_paths
,
xmu_dot_make_residuals
,
xmu_start_value_list
# NOT RUN {
require(umx)
data(demoOneFactor)
m2 <- mxModel("One Factor",
mxMatrix("Full", 5, 1, values = 0.2, free = TRUE, name = "A"),
mxMatrix("Symm", 1, 1, values = 1, free = FALSE, name = "L"),
mxMatrix("Diag", 5, 5, values = 1, free = TRUE, name = "U"),
mxAlgebra(A %*% L %*% t(A) + U, name = "R"),
mxExpectationNormal("R", dimnames = names(demoOneFactor)),
mxFitFunctionML(),
mxData(cov(demoOneFactor), type = "cov", numObs = 500)
)
m3 = umx:::xmuLabel_MATRIX_Model(m2)
m4 = umx:::xmuLabel_MATRIX_Model(m2, suffix = "male")
# explore these with omxGetParameters(m4)
# }
Run the code above in your browser using DataLab