Return model names
Arguments
- m
Structural model represented by lavaan syntax or output of sim_standardized_matrices function.
- ...
parameters passed to the `sim_standardized_matrices` function
Examples
m <- "
A =~ 0.5 * A1 + 0.8 * A2 + 0.8 * A3
B =~ 0.5 * B1 + 0.8 * B2 + 0.8 * B3
B ~ 0.5 * A
"
get_model_names(m)
#> $v_observed
#> [1] "A1" "A2" "A3" "B1" "B2" "B3"
#>
#> $v_latent
#> [1] "A" "B"
#>
#> $v_latent_exogenous
#> [1] "A"
#>
#> $v_latent_endogenous
#> [1] "B"
#>
#> $v_observed_exogenous
#> character(0)
#>
#> $v_observed_endogenous
#> [1] "A1" "A2" "A3" "B1" "B2" "B3"
#>
#> $v_observed_indicator
#> [1] "A1" "A2" "A3" "B1" "B2" "B3"
#>
#> $v_disturbance
#> [1] "d_B"
#>
#> $v_error
#> [1] "e_A1" "e_A2" "e_A3" "e_B1" "e_B2" "e_B3"
#>
#> $v_residual
#> [1] "d_B" "e_A1" "e_A2" "e_A3" "e_B1" "e_B2" "e_B3"
#>
#> $v_factor_score
#> [1] "A_FS" "B_FS"
#>
#> $v_factor_score_disturbance
#> [1] "d_B_FS"
#>
#> $v_factor_score_error
#> [1] "e_A1_FS" "e_A2_FS" "e_A3_FS" "e_B1_FS" "e_B2_FS" "e_B3_FS"
#>
#> $v_composite_score
#> [1] "A_Composite" "B_Composite"
#>