Description Details Author(s) References
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.
Package: | MplusAutomation |
Type: | Package |
Version: | 0.5-4 |
Date: | 2013-02-14 |
License: | LGPL-3 |
LazyLoad: | yes |
The MplusAutomation package has four primary purposes:
To automatically run groups/batches of models.
To provide routines to extract model fit statistics, parameter estimates, and raw data from Mplus output files.
To facilitate comparisons among models
To provide a template language that allows for the creation of related input files.
The core routine for running batches of models is runModels
, with an easy-to-use GUI wrapper, runModels_Interactive
.
To extract model summary statistics from one or more output files, see extractModelSummaries
, which returns a data.frame
of fit statistics
for models located within a directory. Model fit results can be summarized in tabular form (for comparing among models) using showSummaryTable
(displays table in separate window), HTMLSummaryTable
(creates HTML file containing summary table), or LatexSummaryTable
(returns
a LaTex-formatted table of summary statistics).
To extract raw data created by the SAVEDATA command (e.g., class membership probabilities or factor scores), see getSavedata_Data
.
To extract unstandardized or standardized parameter estimates from a single output file, see extractModelParameters
.
Summaries, parameters, modification indices, and SAVEDATA output can be extracted simultaneously using the readModels
function,
and this is the recommended way to extract output with this package.
Model fit and parameter comparisons between models can be obtained using compareModels
.
To create a group of related models from a single template, see createModels
. Please read the MplusAutomation
vignette provided along with the package (and on the CRAN website) in order to understand the template language.
In addition to the major functions above, a function for converting an R data.frame for use with Mplus is provided:
prepareMplusData
. This converts the data.frame to a tab-delimited file and provides an Mplus syntax stub for variable
names.
Michael Hallquist
Maintainers: Michael Hallquist <michael.hallquist@gmail.com> Joshua Wiley <jwiley.psych@gmail.com>
Mplus software. Muthen and Muthen. http://www.statmodel.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.