Learn R Programming

umx (version 1.9.1)

xmuLabel_MATRIX_Model: xmuLabel_MATRIX_Model (not a user function)

Description

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., matrix-name + _ + r + rowNumber + c + colNumber

Usage

xmuLabel_MATRIX_Model(model, suffix = "", verbose = TRUE)

Arguments

model

a matrix-style mxModel to label

suffix

a string to append to each label

verbose

how much feedback to give

Value

- The labeled mxModel

Details

End users should just call umxLabel

See Also

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

Examples

Run this code
# 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