# findFactorIntercept: Find factor intercept from regression coefficient matrix and... In simsem: SIMulated Structural Equation Modeling

## 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

 `1` ```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)

• `findIndIntercept` to find indicator (measurement) intercepts

• `findIndMean` to find indicator (measurement) total means

• `findIndResidualVar` to find indicator (measurement) residual variances

• `findIndTotalVar` to find indicator (measurement) total variances

• `findFactorMean` to find factor means

• `findFactorResidualVar` to find factor residual variances

• `findFactorTotalVar` to find factor total variances

• `findFactorTotalCov` to find factor covariances

## Examples

 ```1 2 3 4 5 6 7 8``` ```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) ```

### Example output

```Loading required package: lavaan
This is lavaan 0.5-23.1097
lavaan is BETA software! Please report any bugs.

###############################################################################################
This is simsem 0.5-13
simsem is BETA software! Please report any bugs.
simsem was developed at the University of Kansas Center for Research Methods and Data Analysis.
###############################################################################################
[1]  5.0  2.0  3.0 -3.0 -3.2 -2.6  0.0  0.0  0.0
```

simsem documentation built on March 29, 2021, 1:07 a.m.