Multilevel Latent Time Series Models with 'R' and 'Stan'
Overview
Fit multilevel manifest or latent time-series models, including popular Dynamic Structural Equation Models (DSEM). The models can be set up and modified with user-friendly functions and are fit to the data using 'Stan' for Bayesian inference. Path models and formulas for user-defined models can be easily created with functions using 'knitr'. Asparouhov, Hamaker, & Muthen (2018) doi:10.1080/10705511.2017.1406803.
Bug Fixes
- Selection of true values for data generation in
mlts_sim()was spurious for residual SDs of outcome variables. Now set to 0.5. - Between-level standardization using
mlts_standardized()failed for models with multiple time-invariant covariates. mlts_paths()did not display time-invariant covariates used as outcome predictors
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-29
- ERROR12 OK, 1 ERROR2026-07-27
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 15 (1 internal)includes a package overview page
- Examples that run
- 8%1 run in a plain check · 9 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 13%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/munchfab/mlts on 2026-10-22.
GitHub Pages site last deployed 2026-10-21 · The repository has a site deploy workflow
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.0.1Latest
- 2.0.0
- RR 4.5.0 released · 2025-04-11
- 1.0.02024-06-27
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-06-27
- Total releases
- 3 / 2 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 10 KB / 2 files
- Download size
- 2.9 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("mlts")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.