emxLoadings: Create a factor loadings matrix

Description Usage Arguments Details Value See Also Examples

View source: R/emxMatrixBuilders.R

Description

This function creates a factor loadings matrix as an MxMatrix or MxPath object.

Usage

1
emxLoadings(x, values=.8, free=TRUE, path=FALSE)

Arguments

x

named list. Gives the factor loading pattern. See Details.

values

numeric vector. The starting values for the nonzero loadings.

free

logical vector. Whether the nonzero loadings are free.

path

logical. Whether to return the MxPath object instead of the MxMatrix.

Details

The x argument must be a named list. The names of the list give the names of the latent variables. Each list element gives the names of the variables that load onto that latent variable. This may sound complicated, but the example below makes this more clear. It is intended to be visually intuitive.

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

Examples

1
2
3
4
5
6
   
# Create a loadings matrix
require(EasyMx)
xmap <- list(F1=paste0('x', 1:6), F2=paste0('y', 1:3), F3=paste0('z', 1:3))
emxLoadings(xmap)
emxLoadings(xmap, path=TRUE)

jpritikin/emx documentation built on May 19, 2019, 11:50 p.m.