Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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, gamma = NULL, covmean = NULL)

Arguments

beta

Regression coefficient matrix among factors

factorMean

A vector of total (model-implied) factor (indicator) means. The default is that all total factor means are 0.

gamma

Regression coefficient matrix from covariates (column) to factors (rows)

covmean

A vector of covariate means.

Value

A vector of factor (indicator) intercepts

Author(s)

Sunthud Pornprasertmanit (psunthud@gmail.com)

See Also

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
factorMean <- c(5, 2, 3, 0, 0, 0, 0, 0, 0)
findFactorIntercept(path, factorMean)

simsem

SIMulated Structural Equation Modeling

v0.5-16
GPL (>= 2)
Authors
Sunthud Pornprasertmanit [aut], Patrick Miller [aut], Alexander Schoemann [aut] (<https://orcid.org/0000-0002-8479-8798>), Terrence D. Jorgensen [aut, cre] (<https://orcid.org/0000-0001-5111-6773>), Corbin Quick [ctb]
Initial release
2021-03-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.