Multilevel Descriptive Statistics and Data Preparation
Overview
Provides tools for multilevel descriptive statistics and data preparation. Computes within-group and between-group correlations (via variance decomposition or two-level structural equation modeling), intraclass correlation coefficients (ICCs), and descriptive statistics for nested data (e.g., repeated measurements per person), supporting both frequentist (via 'lme4' or 'lavaan') and Bayesian (via 'brms') estimation. Results are formatted according to APA standards and can be exported as tables using 'gt' or 'tinytable'. Also includes functions for decomposing variables into within-group and between-group components for use in Random Effects Within-Between (REWB) models.
mldesc()andwithin_between_correlations()now report the number of groups, the total number of observations, and observations per group (e.g., "Based on 100 persons and 1,184 observations (median 12 per person; range: 5–14).") in a note. The note can be replaced via the newgroup_size_noteargument of theprint()methods.- The bundled
media_diaryexample dataset now has a variable number of diary days per person (5–14, median 12; 1,184 rows total) instead of a fixed 14 days (1,400 rows), simulating realistic non-response in a mobile diary study.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK7 OK2026-07-12
Documentation
- Help pages
- 5 (1 internal)includes a package overview page
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 60%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Releases over time
Commits over time
Commit identities over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/felixdidi/mlstats on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-23 · The repository has a site deploy workflow
pkgdown site last built 2026-09-23
Show all practicesHide 1 practice
Dependencies
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2026-07-11
- Total releases
- 3 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 5.2 KB / 1 file
- Download size
- 870 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("mlstats")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.