michaelhallquist / MplusAutomation

The MplusAutomation package leverages the flexibility of the R language to automate latent variable model estimation and interpretation using Mplus, a powerful latent variable modeling program developed by Muthen and Muthen (www.statmodel.com). Specifically, MplusAutomation provides routines for creating related groups of models, running batches of models, and extracting and tabulating model parameters and fit statistics.
84 stars 46 forks source link

Fix for multigroup models, where Observations were not parsed correctly #89

Closed cjvanlissa closed 5 years ago

cjvanlissa commented 5 years ago

I'm working on a package with downstream dependencies on MplusAutomation, and realized that this section of the Mplus output is not parsed correctly. Currently, $summaries$Observations is missing for multi-group models.

Number of observations
   Group MALE                                                  500
   Group FEMALE                                                600
   Total sample size                                          1100

My fix returns the Total sample size as $summaries$Observations, and $summaries gains an attribute "Observations" with the number of observations per group.