[Paper Review] Bayesian multilevel compositional data analysis: introduction, evaluation, and application
This paper introduces a Bayesian multilevel compositional data analysis method to model time reallocation among 24-hour movement behaviours (e.g., sleep, physical activity, sedentary time) while accounting for both within-person and between-person variability. The approach, implemented via the R package multilevelcoda, demonstrates excellent convergence (99%+), low bias (0.00), and accurate coverage (95%) in simulation studies, enabling robust inference on how reallocation of time between behaviours affects emotional and cognitive outcomes in intensive longitudinal studies.
Multilevel compositional data are data that are repeatedly measured or clustered within groups and are non-negative and sum to a constant value. These data arise in various settings, such as intensive, longitudinal studies using ecological momentary assessments and wearable devices. Examples include 24h sleep-wake behaviours, sleep architecture, and macronutrients. This article presents a novel method for analysing multilevel compositional data using Bayesian inference. We describe the theoretical details of the data and the models, and outline the steps necessary to implement this method. We introduce the R package multilevelcoda to facilitate the application of this method and illustrate using a real data example. An extensive parameter recovery simulation study verified the robust performance of the method. Across all conditions investigated in the simulation study, the fitted models had minimal convergence issues (convergence rate > 99%) and achieved excellent quality parameter estimates and inference, with an average bias of 0.00 (range -0.09, 0.05) and coverage of 0.95 (range 0.93, 0.97). We conclude the article with recommendations on the use of the Bayesian multilevel compositional data analysis. We hope to promote wider application of this method to gain novel and robust answers to scientific questions.
Motivation & Objective
- To address the analytical limitations of existing methods that fail to account for the compositional and multilevel structure of intensive longitudinal movement behaviour data.
- To develop a Bayesian multilevel modeling framework that simultaneously models within-person fluctuations and between-person differences in time allocation across sleep, physical activity, and sedentary behaviours.
- To provide a practical, accessible method for researchers analyzing ecological momentary assessment (EMA) data with compositional constraints (i.e., summing to 24 hours).
- To evaluate the method’s performance through extensive simulation studies and demonstrate its application using real-world EMA data.
- To promote the adoption of this method in psychological and health sciences for more conceptually and statistically valid inferences about time reallocation effects.
Proposed method
- The method employs Bayesian hierarchical modeling to jointly estimate within-person and between-person variation in compositional data, where components sum to a constant (e.g., 24 hours).
- It uses the isometric log-ratio (ilr) transformation to map compositional data from the simplex to the real space, enabling standard multilevel modeling.
- The model incorporates random intercepts and slopes at the individual level to capture within-person variability and between-person differences.
- Markov Chain Monte Carlo (MCMC) sampling via Stan is used for posterior inference, with convergence assessed using the $\widehat{R}$ statistic.
- The R package multilevelcoda is developed to streamline data preprocessing, model fitting, and posterior diagnostics for non-expert users.
- The approach allows for isotemporal substitution modeling—assessing how reallocating time from one behaviour to another affects outcomes like mood or cognition.
Experimental results
Research questions
- RQ1How does reallocation of time from sleep to physical activity affect daily emotional experiences in a multilevel compositional framework?
- RQ2To what extent can within-person fluctuations in movement behaviour composition predict changes in cognitive processes over time?
- RQ3How do between-person differences in habitual movement behaviour patterns relate to mental health outcomes in intensive longitudinal studies?
- RQ4What is the statistical performance of the Bayesian multilevel compositional model under varying sample sizes and compositional structures?
- RQ5Can the method reliably estimate parameter biases and coverage rates in realistic simulation conditions?
Key findings
- The Bayesian multilevel compositional model achieved a convergence rate exceeding 99% across all simulation conditions, indicating high stability and reliability.
- Parameter estimates exhibited minimal bias, with an average bias of 0.00 (range: -0.09 to 0.05), demonstrating accurate recovery of true effects.
- Coverage of 95% confidence intervals was consistently high, ranging from 0.93 to 0.97, confirming valid frequentist properties of the inference.
- The method effectively disentangled within-person and between-person effects, enabling nuanced interpretation of time reallocation impacts on outcomes.
- The R package multilevelcoda successfully facilitated end-to-end analysis, from data preparation to model fitting and interpretation in real data applications.
- The simulation study confirmed the method’s robustness even under challenging conditions, such as small sample sizes and high compositional noise.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.