fill_in_Psi: Fill in Covariance Matrix to List

View source: R/fill_in_Psi.R

fill_in_PsiR Documentation

Fill in Covariance Matrix to List

Description

Extracts the covariance matrix (Psi-matrix) from a fitted SEM model and fills it into the internal list.

Usage

fill_in_Psi(internal_list = NULL)

Arguments

internal_list

A list with various information extracted from the model.

Value

The inputted list with slots in the sublist ..$Psi filled in:

..$values: numeric matrix containing parameter values of covariance matrix.
..$labels: character matrix containing parameter labels of covariance matrix.

References

Gische, C., Voelkle, M.C. (2022) Beyond the Mean: A Flexible Framework for Studying Causal Effects Using Linear Models. Psychometrika 87, 868–901. https://doi.org/10.1007/s11336-021-09811-z variance parameters are stored in lavaan's psi matrix (covariance of the latent errors) and the theta matrix (covariance of the manifest errors) is empty.


christian-gische/causalSEM documentation built on April 26, 2023, 10:36 p.m.