emsem_function: An simultaneous EM estimation of a structural equation model...

Description Usage Arguments Value Author(s) References Examples

View source: R/emsem_function.R

Description

This function allows you to fit a structural equation model with one bloc of dependant observed variables and two blocs of explanatory observed variables. Underlying to each bloc there is a latent factor which is simultaneously reconstructed.

Usage

1
emsem_function(Y, X1, X2, T, T1, T2, epsilon = 10^{     -3 }, nb_it = 100)

Arguments

Y

numeric output matrix (or vector) which is the dependant bloc of observed variables.

X1

numeric input matrix (or vector) which is one explanatory bloc of observed variables.

X2

numeric input matrix (or vector) which is one explanatory bloc of observed variables.

T

numeric input matrix (or vector) for extra-covariates linked to Y.

T1

numeric input matrix (or vector) for extra-covariates linked to X1.

T2

numeric input matrix (or vector) for extra-covariates linked to X2.

epsilon

numeric accuracy for the convergence criterion.

nb_it

numeric for give a maximal number of iteration.

Value

list giving the reconstructed latent factor values, the estimated model<e2><80><99>s coefficients, the value of the stopping criterion, the number of iterations effected.

Author(s)

Myriam Tami, myriam.tami@univ-grenoble-alpes.fr

References

https://myriamtami.github.io/data/publications/Tami_thesis.pdf

Examples

1

myriamtami/EMsem documentation built on May 28, 2019, 3:39 p.m.