mlstats: Multilevel Descriptive Statistics and Data Preparation

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.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: cli, dplyr, lme4, pillar, rlang, scales, stringr, tibble, tinytable, vctrs
Suggests: brms, gt, knitr, lavaan, lmerTest, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-07-11
DOI: 10.32614/CRAN.package.mlstats (may not be active yet)
Author: Felix Dietrich [aut, cre, cph]
Maintainer: Felix Dietrich <mail at felix-dietrich.de>
BugReports: https://github.com/felixdidi/mlstats/issues
License: MIT + file LICENSE
URL: https://felixdidi.github.io/mlstats/, https://github.com/felixdidi/mlstats
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: mlstats results

Documentation:

Reference manual: mlstats.html , mlstats.pdf
Vignettes: Statistical Details: Within- and Between-Group Correlation Methods (source, R code)
Getting Started with mlstats (source, R code)
Multilevel Descriptive Statistics (source, R code)
REWB Models (source, R code)
Publication-Ready Tables (source, R code)

Downloads:

Package source: mlstats_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mlstats to link to this page.