emxMeans {EasyMx} | R Documentation |
Create a set of means
Description
This function creates a means matrix as an MxMatrix or MxPath object.
Usage
emxMeans(x, values=0, free=TRUE, path=FALSE, type='saturated', name, column=TRUE, labels)
Arguments
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. |
Details
Possible values for the type
argument are 'saturated', 'equal', 'twin', 'special'.
Value
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.
See Also
emxFactorModel, emxGrowthModel
Examples
# Create a covariance matrix
require(EasyMx)
manVars <- paste0('x', 1:6)
emxMeans(manVars, type='saturated')
[Package EasyMx version 0.3-2 Index]