title: How can I extract factor loadings from lavaan?
body: <p>How can I get a table with all of the latent factors and the loading of each measurement item on all factors? I can't seem to find a way to pull this out of a fit lavaan model. Here is the general code I'm using to generate the model fit.</p>
  
  <pre><code>library(lavaan)
  fit &lt;- sem(mySemModel, data=df, std.ov=TRUE, std.lv=TRUE)
  summary(fit, fit.measures=TRUE, rsq=TRUE, standardized=TRUE)
  </code></pre>
  
  <p>I'm looking for the same kind of output that you'd get from an EFA. For example, if I ran the code:</p>
  
  <pre><code>library(psych)
  myFA &lt;- fa(tpblatentData, 2)
  print(myFA)
  </code></pre>
  
  <p>I would get something like this:</p>
  
  <pre><code>               PA1   PA2
  Qitem1              0.74
  Qitem2              0.82
  Qitem3              0.87
  Qitem4        0.98      
  Qitem5        0.94      
  Qitem6        0.89      
  </code></pre>