\begin{Schunk}
\begin{Sinput}
 ## Specifying the model-structure object
 cfa.04.v.02 <- '
  gotBully =~ NA*gotBu1_o + gotBu2_o + gotBu3_o +
                 gotBu4_o + gotBu5_o + gotBu6_o +
                 gotBu7_o + gotBu8_o + gotBu9_o
  gotBully ~~ 1*gotBully
  
  depress =~ NA*depre1_o + depre2_o + depre3_o +
                depre4_o + depre5_o + depre6_o
  depress ~~ 1*depress
  
  alcohol =~ NA*alc1_o + alc2_o + alc3_o +
                alc4_o + alc5_o
  alcohol ~~ 1*alcohol '
 ## Estimating the model
 cfa.04.v.02.fit <-
  cfa(model = cfa.04.v.02, data = hbsc,
      mimic = "Mplus", estimator = "WLSMV")
 ## Requesting an estimation summery
 summary(cfa.04.v.02.fit, fit.measures = TRUE,
          standardized = TRUE)
\end{Sinput}
\begin{Soutput}
lavaan (0.5-23.1097) converged normally after  23 iterations

                                                  Used       Total
  Number of observations                          2684        4284

  Estimator                                       DWLS      Robust
  Minimum Function Test Statistic              870.308    1046.718
  Degrees of freedom                               167         167
  P-value (Chi-square)                           0.000       0.000
  Scaling correction factor                                  0.876
  Shift parameter                                           52.908
    for simple second-order correction (WLSMV)

Model test baseline model:

  Minimum Function Test Statistic            75123.245   30297.601
  Degrees of freedom                               190         190
  P-value                                        0.000       0.000

User model versus baseline model:

  Comparative Fit Index (CFI)                    0.991       0.971
  Tucker-Lewis Index (TLI)                       0.989       0.967

  Robust Comparative Fit Index (CFI)                            NA
  Robust Tucker-Lewis Index (TLI)                               NA

Root Mean Square Error of Approximation:

  RMSEA                                          0.040       0.044
  90 Percent Confidence Interval          0.037  0.042       0.042  0.047
  P-value RMSEA <= 0.05                          1.000       1.000

  Robust RMSEA                                                  NA
  90 Percent Confidence Interval                                NA     NA

Standardized Root Mean Square Residual:

  SRMR                                           0.052       0.052

Weighted Root Mean Square Residual:

  WRMR                                           1.795       1.795

Parameter Estimates:

  Information                                 Expected
  Standard Errors                           Robust.sem

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  gotBully =~                                                           
    gotBu1_o          0.752    0.013   56.031    0.000    0.752    0.752
    gotBu2_o          0.780    0.013   59.272    0.000    0.780    0.780
    gotBu3_o          0.778    0.015   53.300    0.000    0.778    0.778
    gotBu4_o          0.807    0.011   70.933    0.000    0.807    0.807
    gotBu5_o          0.840    0.012   67.431    0.000    0.840    0.840
    gotBu6_o          0.866    0.013   65.092    0.000    0.866    0.866
    gotBu7_o          0.770    0.015   52.315    0.000    0.770    0.770
    gotBu8_o          0.861    0.014   61.471    0.000    0.861    0.861
    gotBu9_o          0.891    0.016   57.304    0.000    0.891    0.891
  depress =~                                                            
    depre1_o          0.692    0.014   49.508    0.000    0.692    0.692
    depre2_o          0.640    0.015   43.866    0.000    0.640    0.640
    depre3_o          0.753    0.015   48.967    0.000    0.753    0.753
    depre4_o          0.710    0.015   47.978    0.000    0.710    0.710
    depre5_o          0.597    0.017   35.108    0.000    0.597    0.597
    depre6_o          0.628    0.016   38.116    0.000    0.628    0.628
  alcohol =~                                                            
    alc1_o            0.859    0.013   67.435    0.000    0.859    0.859
    alc2_o            0.774    0.016   47.132    0.000    0.774    0.774
    alc3_o            0.951    0.009  106.921    0.000    0.951    0.951
    alc4_o            0.882    0.010   84.810    0.000    0.882    0.882
    alc5_o            0.907    0.009  100.960    0.000    0.907    0.907

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  gotBully ~~                                                           
    depress           0.438    0.024   18.442    0.000    0.438    0.438
    alcohol           0.262    0.031    8.362    0.000    0.262    0.262
  depress ~~                                                            
    alcohol           0.354    0.028   12.469    0.000    0.354    0.354

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .gotBu1_o          0.000                               0.000    0.000
   .gotBu2_o          0.000                               0.000    0.000
   .gotBu3_o          0.000                               0.000    0.000
   .gotBu4_o          0.000                               0.000    0.000
   .gotBu5_o          0.000                               0.000    0.000
   .gotBu6_o          0.000                               0.000    0.000
   .gotBu7_o          0.000                               0.000    0.000
   .gotBu8_o          0.000                               0.000    0.000
   .gotBu9_o          0.000                               0.000    0.000
   .depre1_o          0.000                               0.000    0.000
   .depre2_o          0.000                               0.000    0.000
   .depre3_o          0.000                               0.000    0.000
   .depre4_o          0.000                               0.000    0.000
   .depre5_o          0.000                               0.000    0.000
   .depre6_o          0.000                               0.000    0.000
   .alc1_o            0.000                               0.000    0.000
   .alc2_o            0.000                               0.000    0.000
   .alc3_o            0.000                               0.000    0.000
   .alc4_o            0.000                               0.000    0.000
   .alc5_o            0.000                               0.000    0.000
    gotBully          0.000                               0.000    0.000
    depress           0.000                               0.000    0.000
    alcohol           0.000                               0.000    0.000

Thresholds:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    gotBu1_o|t1       0.266    0.025   10.872    0.000    0.266    0.266
    gotBu1_o|t2       0.852    0.028   30.787    0.000    0.852    0.852
    gotBu1_o|t3       1.070    0.030   35.702    0.000    1.070    1.070
    gotBu1_o|t4       1.319    0.034   39.215    0.000    1.319    1.319
    gotBu2_o|t1       0.470    0.025   18.643    0.000    0.470    0.470
    gotBu2_o|t2       1.028    0.029   34.882    0.000    1.028    1.028
    gotBu2_o|t3       1.241    0.032   38.363    0.000    1.241    1.241
    gotBu2_o|t4       1.539    0.038   40.380    0.000    1.539    1.539
    gotBu3_o|t1       0.906    0.028   32.147    0.000    0.906    0.906
    gotBu3_o|t2       1.331    0.034   39.319    0.000    1.331    1.331
    gotBu3_o|t3       1.546    0.038   40.387    0.000    1.546    1.546
    gotBu3_o|t4       1.802    0.046   39.535    0.000    1.802    1.802
    gotBu4_o|t1       0.304    0.025   12.371    0.000    0.304    0.304
    gotBu4_o|t2       0.917    0.028   32.422    0.000    0.917    0.917
    gotBu4_o|t3       1.204    0.032   37.874    0.000    1.204    1.204
    gotBu4_o|t4       1.459    0.036   40.162    0.000    1.459    1.459
    gotBu5_o|t1       1.012    0.029   34.560    0.000    1.012    1.012
    gotBu5_o|t2       1.375    0.035   39.679    0.000    1.375    1.375
    gotBu5_o|t3       1.555    0.038   40.396    0.000    1.555    1.555
    gotBu5_o|t4       1.831    0.047   39.305    0.000    1.831    1.831
    gotBu6_o|t1       1.251    0.033   38.486    0.000    1.251    1.251
    gotBu6_o|t2       1.580    0.039   40.402    0.000    1.580    1.580
    gotBu6_o|t3       1.788    0.045   39.637    0.000    1.788    1.788
    gotBu6_o|t4       2.029    0.055   37.133    0.000    2.029    2.029
    gotBu7_o|t1       0.649    0.026   24.823    0.000    0.649    0.649
    gotBu7_o|t2       1.077    0.030   35.826    0.000    1.077    1.077
    gotBu7_o|t3       1.291    0.033   38.933    0.000    1.291    1.291
    gotBu7_o|t4       1.564    0.039   40.401    0.000    1.564    1.564
    gotBu8_o|t1       1.361    0.034   39.571    0.000    1.361    1.361
    gotBu8_o|t2       1.695    0.042   40.157    0.000    1.695    1.695
    gotBu8_o|t3       1.889    0.049   38.776    0.000    1.889    1.889
    gotBu8_o|t4       2.083    0.057   36.372    0.000    2.083    2.083
    gotBu9_o|t1       1.492    0.037   40.281    0.000    1.492    1.492
    gotBu9_o|t2       1.744    0.044   39.918    0.000    1.744    1.744
    gotBu9_o|t3       1.889    0.049   38.776    0.000    1.889    1.889
    gotBu9_o|t4       2.075    0.057   36.490    0.000    2.075    2.075
    depre1_o|t1      -0.553    0.026  -21.599    0.000   -0.553   -0.553
    depre1_o|t2       0.163    0.024    6.713    0.000    0.163    0.163
    depre1_o|t3       1.095    0.030   36.162    0.000    1.095    1.095
    depre1_o|t4       1.812    0.046   39.463    0.000    1.812    1.812
    depre2_o|t1      -0.906    0.028  -32.147    0.000   -0.906   -0.906
    depre2_o|t2      -0.175    0.024   -7.176    0.000   -0.175   -0.175
    depre2_o|t3       0.749    0.027   27.917    0.000    0.749    0.749
    depre2_o|t4       1.533    0.038   40.372    0.000    1.533    1.533
    depre3_o|t1       0.293    0.025   11.910    0.000    0.293    0.293
    depre3_o|t2       0.687    0.026   26.046    0.000    0.687    0.687
    depre3_o|t3       1.168    0.031   37.356    0.000    1.168    1.168
    depre3_o|t4       1.642    0.041   40.325    0.000    1.642    1.642
    depre4_o|t1      -0.152    0.024   -6.251    0.000   -0.152   -0.152
    depre4_o|t2       0.247    0.024   10.103    0.000    0.247    0.247
    depre4_o|t3       0.897    0.028   31.940    0.000    0.897    0.897
    depre4_o|t4       1.478    0.037   40.236    0.000    1.478    1.478
    depre5_o|t1      -0.410    0.025  -16.432    0.000   -0.410   -0.410
    depre5_o|t2       0.053    0.024    2.200    0.028    0.053    0.053
    depre5_o|t3       0.656    0.026   25.046    0.000    0.656    0.656
    depre5_o|t4       1.237    0.032   38.313    0.000    1.237    1.237
    depre6_o|t1      -0.454    0.025  -18.073    0.000   -0.454   -0.454
    depre6_o|t2       0.092    0.024    3.782    0.000    0.092    0.092
    depre6_o|t3       0.733    0.027   27.443    0.000    0.733    0.733
    depre6_o|t4       1.261    0.033   38.607    0.000    1.261    1.261
    alc1_o|t1         1.060    0.030   35.515    0.000    1.060    1.060
    alc1_o|t2         1.836    0.047   39.263    0.000    1.836    1.836
    alc1_o|t3         2.193    0.063   34.644    0.000    2.193    2.193
    alc1_o|t4         2.435    0.081   30.196    0.000    2.435    2.435
    alc2_o|t1         0.927    0.028   32.661    0.000    0.927    0.927
    alc2_o|t2         1.816    0.046   39.425    0.000    1.816    1.816
    alc2_o|t3         2.117    0.059   35.865    0.000    2.117    2.117
    alc2_o|t4         2.473    0.084   29.444    0.000    2.473    2.473
    alc3_o|t1         1.317    0.034   39.194    0.000    1.317    1.317
    alc3_o|t2         1.816    0.046   39.425    0.000    1.816    1.816
    alc3_o|t3         2.075    0.057   36.490    0.000    2.075    2.075
    alc3_o|t4         2.435    0.081   30.196    0.000    2.435    2.435
    alc4_o|t1         0.983    0.029   33.938    0.000    0.983    0.983
    alc4_o|t2         1.604    0.040   40.388    0.000    1.604    1.604
    alc4_o|t3         2.000    0.053   37.506    0.000    2.000    2.000
    alc4_o|t4         2.353    0.074   31.779    0.000    2.353    2.353
    alc5_o|t1         1.067    0.030   35.640    0.000    1.067    1.067
    alc5_o|t2         1.719    0.043   40.050    0.000    1.719    1.719
    alc5_o|t3         2.036    0.055   37.033    0.000    2.036    2.036
    alc5_o|t4         2.353    0.074   31.779    0.000    2.353    2.353

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    gotBully          1.000                               1.000    1.000
    depress           1.000                               1.000    1.000
    alcohol           1.000                               1.000    1.000
   .gotBu1_o          0.435                               0.435    0.435
   .gotBu2_o          0.391                               0.391    0.391
   .gotBu3_o          0.395                               0.395    0.395
   .gotBu4_o          0.348                               0.348    0.348
   .gotBu5_o          0.295                               0.295    0.295
   .gotBu6_o          0.249                               0.249    0.249
   .gotBu7_o          0.407                               0.407    0.407
   .gotBu8_o          0.259                               0.259    0.259
   .gotBu9_o          0.206                               0.206    0.206
   .depre1_o          0.521                               0.521    0.521
   .depre2_o          0.591                               0.591    0.591
   .depre3_o          0.432                               0.432    0.432
   .depre4_o          0.495                               0.495    0.495
   .depre5_o          0.643                               0.643    0.643
   .depre6_o          0.606                               0.606    0.606
   .alc1_o            0.262                               0.262    0.262
   .alc2_o            0.401                               0.401    0.401
   .alc3_o            0.095                               0.095    0.095
   .alc4_o            0.221                               0.221    0.221
   .alc5_o            0.178                               0.178    0.178

Scales y*:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    gotBu1_o          1.000                               1.000    1.000
    gotBu2_o          1.000                               1.000    1.000
    gotBu3_o          1.000                               1.000    1.000
    gotBu4_o          1.000                               1.000    1.000
    gotBu5_o          1.000                               1.000    1.000
    gotBu6_o          1.000                               1.000    1.000
    gotBu7_o          1.000                               1.000    1.000
    gotBu8_o          1.000                               1.000    1.000
    gotBu9_o          1.000                               1.000    1.000
    depre1_o          1.000                               1.000    1.000
    depre2_o          1.000                               1.000    1.000
    depre3_o          1.000                               1.000    1.000
    depre4_o          1.000                               1.000    1.000
    depre5_o          1.000                               1.000    1.000
    depre6_o          1.000                               1.000    1.000
    alc1_o            1.000                               1.000    1.000
    alc2_o            1.000                               1.000    1.000
    alc3_o            1.000                               1.000    1.000
    alc4_o            1.000                               1.000    1.000
    alc5_o            1.000                               1.000    1.000
\end{Soutput}
\end{Schunk}
