An R Package for Facilitating Large-Scale Latent Variable Analyses in Mplus
Overview
Leverages the R language to automate latent variable model estimation and interpretation using 'Mplus', a powerful latent variable modeling program developed by Muthen and Muthen (https://www.statmodel.com). Specifically, this package provides routines for creating related groups of models, running batches of models, and extracting and tabulating model parameters and fit statistics.
- feature: readModels now parses input MODEL sections into $model_table, a syntax-oriented data.frame with parameter headers, labels, modifiers, values, fixed/free status, and source sections
- feature: readModels now extracts TECH4 standard errors, Est./S.E. values, and p-values for latent means, covariances, and correlations alongside the estimate matrices
- feature: TECH10 section is now parsed into $tech10 by readModels
- feature: mplusModel now supports update() semantics like mplusObject and base R objects
- feature: mplusModel now supports clearer entry points, including from an existing out_file
- feature: expose a digits argument for SummaryTable to allow user to control rounding/precision for numeric fields. Closes #216 and #153.
- feature: readModels parses final estimates as starting values section (produced by OUTPUT: SVALUES) into $svalues and $parameters$svalues. Closes #214
- feature: readModels extracts information about random starts, including final stage log-likelihoods into $random_starts. Closes #214
- bugfix: support extraction of TECH11 and other sections when they are interrupted by warnings or errors
- bugfix: handle non-UTF8 inputs using sanitize_mplus_text function. Closes #215
- bugfix: error in mplusModeler() when user provides NAMES statement and also uses rdata (which generates NAMES). Closes #164
- bugfix: expand TECH4 parsing to preserve estimate matrices when Mplus repeats "ESTIMATES DERIVED FROM THE MODEL" subsections for estimates versus S.E./test-statistic blocks
Show all changes in 1.3Hide the rest of the changes in 1.3
- bugfix: improve grouped TECH4 and SVALUES handling, including regression coverage for grouped User's Guide examples such as ex5.16
From NEWS in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 145 (98 internal)
- Examples that run
- 20%18 run in a plain check · 40 never run · 33 hold no code
- Exported functions with examples
- 95%
- Documented parameters
- 98%
- Return-value docs
- 95%
- Help pages citing references
- 1%
Downloads
Repository
- PRs merged (all time)
- 89%
- Median days to close, 50 most recently updated closed issues
- 221
- Median days to close, 50 most recently updated closed PRs
- 4
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
7 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/michaelhallquist/mplusautomation on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-08-03 · The repository has a site deploy workflow
pkgdown site last built 2026-08-03
This repository shows signs of AI coding tools.
- Codexfirst seen 2025-08-13Pull request it wrote: opened by a project member
Dependencies
Installing MplusAutomation adds 44 packages (24 with compiled code, 40 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Show all 19 packagesHide all 19 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.3Latest
- RR 4.6.0 released · 2026-04-24
- 1.22025-09-02 · diff ↗ ·
removed 7 exports
detectVariables, extractModIndices, extractModelParameters, extractModelSummaries, getSavedata_Bparams, getSavedata_Data, getSavedata_Fileinfoadded 3 exports
checkSubmission, mplusModel, submitModels - RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.1.12024-01-31 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.1.02022-04-06 · diff ↗
- 1.0.02021-07-01 · diff ↗ ·
added 28 exports
detectMplus, get_bparameters, get_class_counts, get_covariance_coverage, get_data_summary, get_fac_score_stats, get_gh5, get_indirect, get_input, get_invariance_testing, get_lcCondMeans, get_mod_indices, get_parameters, get_residuals, get_results, get_sampstat, get_savedata, get_summaries, get_tech1, get_tech10, get_tech12, get_tech15, get_tech3, get_tech4, get_tech7, get_tech8, get_tech9, get_warn_err - RR 4.1.0 released · 2021-05-18
- 0.8
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.7-3
- RR 3.5.0 released · 2018-04-23
Show 37 earlier eventsHide 37 earlier events
- 0.7-22018-04-06 · diff ↗ ·
added 6 exports
createMixtures, mixtureSummaryTable, plotGrowthMixtures, plotLTA, plotMixtureDensities, plotMixtures - 0.7-12018-01-31 · diff ↗
- 0.7
- RR 3.4.0 released · 2017-04-21
- 0.6-4
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.6-3
- RR 3.1.0 released · 2014-04-10
- 0.6-22013-10-24 · diff ↗
- 0.6-12013-05-09 · diff ↗
- 0.62013-05-06 · diff ↗ ·
added 7 exports
cd, createSyntax, mplusModeler, mplusObject, mplusRcov, paramExtract, parseMplus - RR 3.0.0 released · 2013-04-03
- 0.5-42013-02-15 · diff ↗
- 0.5-3
- 0.5-22012-07-12 · diff ↗
- 0.5-12012-04-03 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 0.5
- RR 2.14.0 released · 2011-10-31
- 0.4-32011-07-25 · diff ↗ ·
added 3 exports
getSavedata_Bparams, testBParamConstraint, testBParamCompoundConstraint - RR 2.13.0 released · 2011-04-13
- 0.4-2
- 0.4-12011-02-14 · diff ↗
- 0.4
- RR 2.12.0 released · 2010-10-15
- 0.3-32010-07-24 · diff ↗
- 0.3-2
- 0.3-12010-05-18 · diff ↗
- 0.3
- RR 2.11.0 released · 2010-04-22
- 0.2-52010-04-03 · diff ↗
- 0.2-42010-03-19 · diff ↗
- 0.2-3
- 0.2-22010-03-11 · diff ↗ ·
removed 1 export
parseModelsadded 2 exports
extractModelSummaries, extractModelParameters - 0.2-12010-03-10
- RR 2.10.0 released · 2009-10-26
Package metadata
- First published
- 2010-03-10
- Total releases
- 33 / 16 yrs
- License
- LGPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 750 KB / 1 file
- Download size
- 7.5 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("MplusAutomation")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1080/10705511.2017.1402334.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.