Learn R Programming

umx (version 1.4.0)

umxMatrix: umxMatrix

Description

umxMatrix is a wrapper for mxMatrix which labels cells buy default, and has the name parameter first in order.

Usage

umxMatrix(name = NA, type = "Full", nrow = NA, ncol = NA, free = FALSE, values = NA, labels = TRUE, lbound = NA, ubound = NA, byrow = getOption("mxByrow"), dimnames = NA, condenseSlots = getOption("mxCondenseMatrixSlots"), ..., joinKey = as.character(NA), joinModel = as.character(NA))

Arguments

name
The name of the matrix (Default = NA). Note the different order compared to mxMatrix!
type
The type of the matrix (Default = "Full")
nrow
Number of rows in the matrix: Must be set
ncol
Number of columns in the matrix: Must be set
free
Whether cells are free (Defaul FALSE)
values
The values of the matrix (Default NA)
labels
Either whether to label the matrix (default TRUE), OR a vector of labels to apply.
lbound
Lower bounds on cells (Defaults to NA)
ubound
Upper bounds on cells (Defaults to NA)
byrow
Whether to fill the matrix down columns or across rows first (Default = getOption('mxByrow')
dimnames
NA
condenseSlots
Whether to save memory by NULLing out unused matrix elements, like labels, ubnound etc. Default = getOption('mxCondenseMatrixSlots')
...
Additional parameters (!! not currently supported by umxMatrix)
joinKey
See mxMatrix documentation: Defaults to as.character(NA)
joinModel
See mxMatrix documentation: Defaults to as.character(NA)

Value

- mxMatrix

References

- https://github.com/tbates/umx, https://tbates.github.io

See Also

- umxLabel

Other Model Building Functions: umxDiagnose, umxLabel, umxLatent, umxModify, umxPath, umxRAM2Ordinal, umxRAM, umxRun, umxThresholdMatrix, umxValues, umx_fix_first_loadings, umx_fix_latents, umx

Examples

Run this code
umxMatrix("test", "Full", 1, 1)

Run the code above in your browser using DataLab