sim_standardized_matrices: Return model characteristics

View source: R/main.R

sim_standardized_matricesR Documentation

Return model characteristics

Description

Function that takes a lavaan model with standardized parameters and returns a list with model characteristics

Usage

sim_standardized_matrices(m, max_iterations = 100, composite_threshold = NULL)

Arguments

m

Structural model represented by lavaan syntax

max_iterations

Maximum number of iterations before the algorithm fails

composite_threshold

Loadings with absolute values less than this threshold will not be counted as composite indicators

Details

This function supports the '~' operator for regressions, the '~~' for covariances (but not variances), and the '=~' latent variable loadings. It does not support intercepts (e.g,. 'y ~ 1'), thresholds, scaling factors, formative factors, or equality constraints.

Value

list of path and covariance coefficients

Examples

library(simstandard)
# lavaan model
m = "Latent_1 =~ 0.8 * Ob_1 + 0.7 * Ob_2 + 0.4 * Ob_3"

sim_standardized_matrices(m)

wjschne/simstandard documentation built on April 13, 2024, 4:44 p.m.