fill_in_theta: Extract Model Parameters

View source: R/fill_in_theta.R

fill_in_thetaR Documentation

Extract Model Parameters

Description

Extracts the numeric values and labels of distinct and functionally unrelated parameters from a fitted structural equation model (i.e., all uniquely labelled coefficients in C and Psi matrix. Duplicates due to symmetry or equality constraints are removed.). The entries in the resulting vectors follow the following predefined order: First: structural coefficients from the C matrix are added rowwise. Second: variance covariance parameters from the Psi matrix are added rowwise. Supported class of fitted objects: lavaan.

Usage

fill_in_theta(internal_list = NULL)

Arguments

internal_list

A list with various information extracted from the model.

Value

The inputted internal_list with slots in the sublist ..$param filled in:

..$n_par: Integer number indicating the total number of estimated parameters.
Duplicates due to symmetry or equality constraints are counted.
..$n_par_unique: Integer number indicating the number of distinct and functionally unrelated parameters.
..$labels_par_unique: Character vector containing the labels of distinct and functionally unrelated parameters.
..$values_par_unique: Numeric vector containing the parameter values (estimates) of distinct and functionally
unrelated parameters.
..$varcov_par_unique: Numeric matrix containing the (co-) variances of the estimator of distinct and
functionally unrelated parameters.

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


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