Learn R Programming

simsem (version 0.2-8)

findFactorIntercept: Find factor intercept from regression coefficient matrix and factor total means

Description

Find factor intercept from regression coefficient matrix and factor total means for latent variable models. In the path analysis model, this function will find indicator intercept from regression coefficient and indicator total means.

Usage

findFactorIntercept(beta, factorMean = NULL)

Arguments

beta
Regression coefficient matrix
factorMean
Total (model-implied) factor (indicator) means. The default is that all total factor means are 0.

Value

  • A vector of factor (indicator) intercepts

See Also

Examples

Run this code
path <- matrix(0, 9, 9)
path[4, 1] <- path[7, 4] <- 0.6
path[5, 2] <- path[8, 5] <- 0.6
path[6, 3] <- path[9, 6] <- 0.6
path[5, 1] <- path[8, 4] <- 0.4
path[6, 2] <- path[9, 5] <- 0.4
factorMean <- c(5, 2, 3, 0, 0, 0, 0, 0, 0)
findFactorIntercept(path, factorMean)

Run the code above in your browser using DataLab