| findFactorMean {simsem} | R Documentation |
Find factor total means from regression coefficient matrix and factor intercept
Description
Find factor total means from regression coefficient matrix and factor intercepts for latent variable models. In the path analysis model, this function will find indicator total means from regression coefficient and indicator intercept.
Usage
findFactorMean(beta, alpha = NULL, gamma = NULL, covmean = NULL)
Arguments
beta |
Regression coefficient matrix among factors |
alpha |
Factor (indicator) intercept. The default is that all factor intercepts are 0. |
gamma |
Regression coefficient matrix from covariates (column) to factors (rows) |
covmean |
A vector of covariate means. |
Value
A vector of factor (indicator) total means
Author(s)
Sunthud Pornprasertmanit (psunthud@gmail.com)
See Also
-
findIndInterceptto find indicator (measurement) intercepts -
findIndMeanto find indicator (measurement) total means -
findIndResidualVarto find indicator (measurement) residual variances -
findIndTotalVarto find indicator (measurement) total variances -
findFactorInterceptto find factor intercepts -
findFactorResidualVarto find factor residual variances -
findFactorTotalVarto find factor total variances -
findFactorTotalCovto find factor covariances
Examples
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
intcept <- c(5, 2, 3, 0, 0, 0, 0, 0, 0)
findFactorMean(path, intcept)