\begin{Schunk}
\begin{Sinput}
 configModel <- "
    MATH =~ wratcalc + wjcalc + waiscalc
    SPELL =~ wratspl + wjspl + waisspl
  "
 configOutput <- cfa(model = configModel, data = dat, group = "female", std.lv = TRUE, missing = "fiml")
 summary(configOutput)
\end{Sinput}
\begin{Soutput}
lavaan 0.6-3 ended normally after 66 iterations

  Optimization method                           NLMINB
  Number of free parameters                         38

  Number of observations per group         
  1                                                101
  0                                                221
  Number of missing patterns per group     
  1                                                  4
  0                                                  2

  Estimator                                         ML
  Model Fit Test Statistic                      19.215
  Degrees of freedom                                16
  P-value (Chi-square)                           0.258

Chi-square for each group:

  1                                             11.555
  0                                              7.660

Parameter Estimates:

  Information                                 Observed
  Observed information based on                Hessian
  Standard Errors                             Standard


Group 1 [1]:

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)
  MATH =~                                             
    wratcalc          6.545    0.496   13.187    0.000
    wjcalc            4.215    0.366   11.530    0.000
    waiscalc          2.290    0.276    8.306    0.000
  SPELL =~                                            
    wratspl           7.010    0.547   12.817    0.000
    wjspl             6.833    0.518   13.182    0.000
    waisspl           6.638    0.520   12.763    0.000

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)
  MATH ~~                                             
    SPELL             0.634    0.064    9.914    0.000

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)
   .wratcalc         38.267    0.666   57.464    0.000
   .wjcalc           23.603    0.465   50.781    0.000
   .waiscalc         10.266    0.316   32.528    0.000
   .wratspl          37.171    0.735   50.590    0.000
   .wjspl            42.337    0.705   60.073    0.000
   .waisspl          38.030    0.697   54.579    0.000
    MATH              0.000                           
    SPELL             0.000                           

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)
   .wratcalc          1.957    1.621    1.208    0.227
   .wjcalc            3.960    0.848    4.671    0.000
   .waiscalc          4.765    0.714    6.678    0.000
   .wratspl           5.307    1.105    4.804    0.000
   .wjspl             3.474    0.910    3.818    0.000
   .waisspl           4.900    1.007    4.865    0.000
    MATH              1.000                           
    SPELL             1.000                           


Group 2 [0]:

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)
  MATH =~                                             
    wratcalc          5.764    0.330   17.492    0.000
    wjcalc            4.123    0.244   16.926    0.000
    waiscalc          2.446    0.200   12.212    0.000
  SPELL =~                                            
    wratspl           6.278    0.337   18.646    0.000
    wjspl             6.788    0.359   18.929    0.000
    waisspl           6.177    0.335   18.441    0.000

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)
  MATH ~~                                             
    SPELL             0.520    0.053    9.762    0.000

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)
   .wratcalc         39.222    0.417   93.962    0.000
   .wjcalc           23.910    0.305   78.420    0.000
   .waiscalc         11.367    0.226   50.320    0.000
   .wratspl          36.172    0.448   80.762    0.000
   .wjspl            41.371    0.480   86.157    0.000
   .waisspl          36.767    0.444   82.899    0.000
    MATH              0.000                           
    SPELL             0.000                           

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)
   .wratcalc          5.280    1.232    4.285    0.000
   .wjcalc            3.549    0.664    5.342    0.000
   .waiscalc          5.269    0.557    9.463    0.000
   .wratspl           4.915    0.726    6.772    0.000
   .wjspl             4.881    0.795    6.138    0.000
   .waisspl           5.285    0.736    7.176    0.000
    MATH              1.000                           
    SPELL             1.000                           
\end{Soutput}
\end{Schunk}
