View source: R/emxMatrixBuilders.R
emxMeans | R Documentation |
This function creates a means matrix as an MxMatrix or MxPath object.
emxMeans(x, values=0, free=TRUE, path=FALSE, type='saturated', name, column=TRUE, labels)
x |
character vector. The names of the variables for which means are created. |
values |
numeric vector. See Details. |
free |
logical vector. See Details. |
path |
logical. Whether to return the MxPath object instead of the MxMatrix. |
type |
character. The kind of covariance structure to create. See Details. |
name |
The name of the matrix created. |
column |
logical. Whether to create the means vector as a column or row. |
labels |
character vector. Optional labels for the means. |
Possible values for the type
argument are 'saturated', 'equal', 'twin', 'special'.
Depending on the value of the path
argument, either an MxMatrix or and MxPath object that can be inspected, modified, and/or included in MxModel objects.
emxFactorModel, emxGrowthModel
# Create a covariance matrix require(EasyMx) manVars <- paste0('x', 1:6) emxMeans(manVars, type='saturated')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.