fill_in_info_model: Extract Information From Fitted Model

View source: R/fill_in_info_model.R

fill_in_info_modelR Documentation

Extract Information From Fitted Model

Description

Extract number of observations, number of manifest variables, and names of observed variables from a fitted structural equation model. Fitted model can be of class lavaan.

Usage

fill_in_info_model(internal_list = NULL, model = NULL)

Arguments

internal_list

A list with various information extracted from the model.

model

Fitted model. The fitted model can be of class lavaan.

Value

The inputted internal_list with several slots filled in:

..$fitted_object object containing fitted SEM model
..$info_model$n_obs single integer; number of observations (sample size)
..$info_model$n_ov single integer; number of observed (manifest) variables
..$info_model$var_names character vector with variable names

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.