\begin{Schunk}
\begin{Sinput}
 ## Specifying the model-structure object 
 cfa.01.v.02 <- '
  depress =~ NA*depre1_o + depre2_o + depre3_o +
                depre4_o + depre5_o + depre6_o
  depress ~~ 1*depress '
 ## Estimating the model
 cfa.01.v.02.fit <- 
  cfa(model = cfa.01.v.02, data = hbsc,
      mimic = "Mplus", estimator = "WLSMV",
      ordered = c("depre1_o", "depre2_o",
                  "depre3_o", "depre4_o",
                  "depre5_o", "depre6_o"))
 ## Requesting an estimation summary
 summary(cfa.01.v.02.fit, fit.measures = TRUE,
          standardized = TRUE)
\end{Sinput}
\begin{Soutput}
lavaan (0.5-23.1097) converged normally after  12 iterations

                                                  Used       Total
  Number of observations                          4103        4284

  Estimator                                       DWLS      Robust
  Minimum Function Test Statistic              170.031     315.344
  Degrees of freedom                                 9           9
  P-value (Chi-square)                           0.000       0.000
  Scaling correction factor                                  0.540
  Shift parameter                                            0.231
    for simple second-order correction (WLSMV)

Model test baseline model:

  Minimum Function Test Statistic            16019.445   10984.581
  Degrees of freedom                                15          15
  P-value                                        0.000       0.000

User model versus baseline model:

  Comparative Fit Index (CFI)                    0.990       0.972
  Tucker-Lewis Index (TLI)                       0.983       0.953

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

Root Mean Square Error of Approximation:

  RMSEA                                          0.066       0.091
  90 Percent Confidence Interval          0.058  0.075       0.083  0.100
  P-value RMSEA <= 0.05                          0.001       0.000

  Robust RMSEA                                                  NA
  90 Percent Confidence Interval                                NA     NA

Standardized Root Mean Square Residual:

  SRMR                                           0.034       0.034

Weighted Root Mean Square Residual:

  WRMR                                           2.088       2.088

Parameter Estimates:

  Information                                 Expected
  Standard Errors                           Robust.sem

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  depress =~                                                            
    depre1_o          0.710    0.010   69.620    0.000    0.710    0.710
    depre2_o          0.655    0.011   59.565    0.000    0.655    0.655
    depre3_o          0.744    0.011   66.214    0.000    0.744    0.744
    depre4_o          0.715    0.011   66.132    0.000    0.715    0.715
    depre5_o          0.603    0.013   47.857    0.000    0.603    0.603
    depre6_o          0.589    0.013   45.792    0.000    0.589    0.589

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .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
    depress           0.000                               0.000    0.000

Thresholds:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    depre1_o|t1      -0.564    0.021  -27.190    0.000   -0.564   -0.564
    depre1_o|t2       0.133    0.020    6.757    0.000    0.133    0.133
    depre1_o|t3       1.095    0.024   44.714    0.000    1.095    1.095
    depre1_o|t4       1.786    0.036   49.027    0.000    1.786    1.786
    depre2_o|t1      -0.870    0.023  -38.655    0.000   -0.870   -0.870
    depre2_o|t2      -0.193    0.020   -9.813    0.000   -0.193   -0.193
    depre2_o|t3       0.737    0.022   34.076    0.000    0.737    0.737
    depre2_o|t4       1.510    0.030   49.863    0.000    1.510    1.510
    depre3_o|t1       0.289    0.020   14.544    0.000    0.289    0.289
    depre3_o|t2       0.668    0.021   31.455    0.000    0.668    0.668
    depre3_o|t3       1.177    0.025   46.355    0.000    1.177    1.177
    depre3_o|t4       1.624    0.033   49.905    0.000    1.624    1.624
    depre4_o|t1      -0.107    0.020   -5.447    0.000   -0.107   -0.107
    depre4_o|t2       0.255    0.020   12.896    0.000    0.255    0.255
    depre4_o|t3       0.888    0.023   39.219    0.000    0.888    0.888
    depre4_o|t4       1.436    0.029   49.526    0.000    1.436    1.436
    depre5_o|t1      -0.370    0.020  -18.423    0.000   -0.370   -0.370
    depre5_o|t2       0.072    0.020    3.668    0.000    0.072    0.072
    depre5_o|t3       0.669    0.021   31.485    0.000    0.669    0.669
    depre5_o|t4       1.232    0.026   47.298    0.000    1.232    1.232
    depre6_o|t1      -0.428    0.020  -21.175    0.000   -0.428   -0.428
    depre6_o|t2       0.085    0.020    4.323    0.000    0.085    0.085
    depre6_o|t3       0.741    0.022   34.223    0.000    0.741    0.741
    depre6_o|t4       1.255    0.026   47.639    0.000    1.255    1.255

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    depress           1.000                               1.000    1.000
   .depre1_o          0.496                               0.496    0.496
   .depre2_o          0.571                               0.571    0.571
   .depre3_o          0.446                               0.446    0.446
   .depre4_o          0.489                               0.489    0.489
   .depre5_o          0.637                               0.637    0.637
   .depre6_o          0.653                               0.653    0.653

Scales y*:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    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
\end{Soutput}
\end{Schunk}
