How can I extract factor loads from lava?

How can I get a table with all the hidden factors and loading of each dimension element for all factors? I cannot find a way to get this out of a suitable Lavanese model. Here is the generic code that I use to create a suitable model.

library(lavaan)
fit <- sem(mySemModel, data=df, std.ov=TRUE, std.lv=TRUE)
summary(fit, fit.measures=TRUE, rsq=TRUE, standardized=TRUE)

I am looking for the same issue that you will receive from EFA. For example, if I ran the code:

library(psych)
myFA <- fa(tpblatentData, 2)
print(myFA)

I would get something like this:

               PA1   PA2
Qitem1              0.74
Qitem2              0.82
Qitem3              0.87
Qitem4        0.98      
Qitem5        0.94      
Qitem6        0.89      
+3
source share
1 answer

You can get standardized model loads in matrix form using a function inspectfrom the package lavaan. The following code will return lambda (factor loads), theta (observable error covariance matrix), psi (latent covariance matrix), and beta (latent paths).

inspect(fit,what="std")

, , -:

inspect(fit,what="std")$lambda

, "est" "std".

+10

All Articles