Return factor score coefficients
Arguments
- m
Structural model represented by lavaan syntax or output of sim_standardized_matrices function.
- latent
Include latent variables.
- errors
Include observed error and latent disturbances variables.
- ...
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_factor_score_coefficients(m)
#> A_FS B_FS
#> A1 0.12977451 0.01656696
#> A2 0.43258168 0.05522319
#> A3 0.43258168 0.05522319
#> B1 0.01656696 0.12977451
#> B2 0.05522319 0.43258168
#> B3 0.05522319 0.43258168