Learn R Programming

simsem (version 0.2-8)

simParamCFA: Create a set of matrices of parameters for analyzing data that belongs to CFA model.

Description

This function will create set of matrices of free parameters that belongs to confirmatory factor analysis. The requirement is to specify factor loading matrix.

Usage

simParamCFA(...)

Arguments

...
Each element of model specification, as described in Details

Value

  • SimParam object that represents the CFA free parameters. This will be used for building SimModel later.

Details

NOTE: CFA object can be either specified in X or Y side.
  • LXorLYfor factor loading matrix (need to be amatrix).
  • TDorTEfor measurement error covariance matrix (need to be amatrix).
  • PHorPSfor factor covariance matrix (need to be a symmetricmatrix).
  • TXorTYfor measurement intercepts (need to be avector).
  • KA,AL,MK, orMEfor factor means (need to be avector).
There are only one required matrices: LY (or LX). The default specifications are
  1. The scale-identification default of this model is fixed factor method (factor variances = 1 and factor means = 0).
  2. If error covariance matrix is not specified, the default is to estimate all error variances and not estimate error covariances.
  3. If factor covariance matrix is not specified, the default is to fix all factor covariance.
  4. If factor mean vector is not specified, the default is to fix all factor means to 0.
  5. If measurement intercept vector is not specified, the default is to estimate all measurement intercepts.

See Also

  • See classSimParamfor the free parameters object details.
  • UsesimParamPathto specify path analysis model and usesimParamSEMto specify full structural equation modeling.

Examples

Run this code
loading <- matrix(0, 6, 2)
loading[1:3, 1] <- NA
loading[4:6, 2] <- NA
CFA.Model <- simParamCFA(LX = loading)

Run the code above in your browser using DataLab