DOI: 10.1177/20501579261491585 ISSN: 2050-1579
mlstats
: An R Package for Multilevel Descriptive Statistics and Data Preparation
Felix Dietrich
Mobile research methods such as experience sampling, smartphone logging, and daily diary designs produce nested data, in which within-level fluctuations must be distinguished from between-level differences. Yet, there is no established convention for preparing and descriptively reporting such multilevel data. This paper introduces
mlstats
, an open-source R package that computes multilevel descriptive statistics—including intraclass correlation coefficients and within- and between-group correlations—in a single call, exports publication-ready tables, and decomposes variables for random effects within-between modeling. Supporting both frequentist and Bayesian estimation,
mlstats
is freely available on Comprehensive R Archive Network with extensive online documentation at
https://felixdidi.github.io/mlstats/
.