sim_standardized_matrices {simstandard} | R 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)
[Package simstandard version 0.6.3 Index]