Extracting tables from Lavaan

Hi, I'm using the lavaan to analyze mediation models. I was wondering if there is a way to extract the output it gives me into a word or excel document, specifically this part:

Regressions:
                     Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  ROCII_ACTIVE_avg ~                                                      
    MULTIIS_n_ (a)      0.166    0.059    2.835    0.005    0.166    0.299
  RSE_total ~                                                             
    ROCII_ACTI (b)     -0.003    0.106   -0.024    0.981   -0.003   -0.003
    MULTIIS_n_ (c)      0.204    0.059    3.454    0.001    0.204    0.371

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .ROCII_ACTIVE_v    0.336    0.052    6.403    0.000    0.336    0.911
   .RSE_total         0.310    0.048    6.403    0.000    0.310    0.863

R-Square:
                   Estimate
    ROCII_ACTIVE_v    0.089
    RSE_total         0.137

Defined Parameters:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    indirect         -0.000    0.018   -0.024    0.981   -0.000   -0.001
    direct            0.204    0.059    3.454    0.001    0.204    0.371
    total             0.203    0.056    3.611    0.000    0.203    0.370

as well as the covariance matrix:

> fitted(fit_a1)
$cov
                 ROCII_ RSE_tt MULTII
ROCII_ACTIVE_avg 0.369               
RSE_total        0.039  0.359        
MULTIIS_int_avg  0.198  0.243  1.195 

I couldn't figure out how to extract descriptive data, and ended up just typing every value out by hand.
All of this output is from a single model, and I have 12 to analyze, so that would be incredibly time consuming and I'm sure that there is a simpler way to do it.

If someone knows how to do that, could you please help? A step by step would be enormously appreciated!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.