simstandard (version 0.3.0)

sim_standardized_matrices: 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

Value

list of path and covariance coefficients

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.

Examples

Run this code
# NOT RUN {
library(simstandard)
# lavaan model
m = "Latent_1 =~ 0.8 * Ob_1 + 0.7 * Ob_2 + 0.4 * Ob_3"

sim_standardized_matrices(m)
# }

Run the code above in your browser using DataLab