sim_standardized_matrices: Return model characteristics

Description Usage Arguments Details Value Examples

View source: R/main.R

Description

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

Usage

1
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

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

sim_standardized_matrices(m)

simstandard documentation built on May 8, 2021, 1:06 a.m.