Skip to main content
QUICK REVIEW

[论文解读] Bayesian multilevel compositional data analysis with the R package multilevelcoda

Flora Le, Dorothea Dumuid|arXiv (Cornell University)|Nov 19, 2024
Geochemistry and Geologic MappingComputer Science被引用 3
一句话总结

本文介绍了 R 包 multilevelcoda,该包利用等距对数比(ilr)变换实现贝叶斯多层组成数据分析,以处理时间分配或宏量营养素摄入等部分总和为常数的多层组成数据。该方法将贝叶斯层次模型与组成数据分析原理相结合,能够在考虑嵌套数据结构和通过后验抽样量化不确定性的同时,对相对变化进行稳健推断。

ABSTRACT

Multilevel compositional data, such as data sampled over time that are non-negative and sum to a constant value, are common in various fields. However, there is currently no software specifically built to model compositional data in a multilevel framework. The R package multilevelcoda implements a collection of tools for modelling compositional data in a Bayesian multivariate, multilevel pipeline. The user-friendly setup only requires the data, model formula, and minimal specification of the analysis. This paper outlines the statistical theory underlying the Bayesian compositional multilevel modelling approach and details the implementation of the functions available in multilevelcoda, using an example dataset of compositional daily sleep-wake behaviours. This innovative method can be used to gain robust answers to scientific questions using the increasingly available multilevel compositional data from intensive, longitudinal studies.

研究动机与目标

  • 解决在贝叶斯框架下缺乏对多层组成数据建模的软件工具的问题。
  • 实现对嵌套或纵向结构中组成部分相对变化的稳健统计推断。
  • 将贝叶斯多层模型与组成数据分析(CoDA)技术相结合,特别是等距对数比(ilr)变换。
  • 提供一个用户友好的 R 包,除数据和模型公式外,几乎无需额外配置。
  • 支持对来自密集纵向研究的复杂多层组成数据的科学研究。

提出的方法

  • 利用等距对数比(ilr)变换消除总和为常数的组成部分之间的线性依赖性。
  • 对变换后的 ilr 坐标应用贝叶斯层次模型,实现具有多级随机效应的多层结构建模。
  • 采用马尔可夫链蒙特卡洛(MCMC)抽样,特别是无截断抽样(NUTS)算法,进行后验推断。
  • 通过在建模前将响应变量和预测变量均转换为 ilr 坐标,支持两者均为组成数据。
  • 使用后验预测检查和可信区间评估模型拟合度并量化不确定性。
  • 通过 cmdstanr 接口与 R 的 Stan 引擎集成,实现高效的 MCMC 计算。
Figure 2: Difference in stress for 1-10 minutes of reallocation between time awake in bed and other behaviours. TST = total sleep time, WAKE = time awake in bed, MVPA = moderate-to-vigorous physical activity, LPA = light physical activity, SB = sedentary behaviour.
Figure 2: Difference in stress for 1-10 minutes of reallocation between time awake in bed and other behaviours. TST = total sleep time, WAKE = time awake in bed, MVPA = moderate-to-vigorous physical activity, LPA = light physical activity, SB = sedentary behaviour.

实验结果

研究问题

  • RQ1如何将贝叶斯多层模型调整以处理在多层嵌套结构中总和为常数的组成数据?
  • RQ2在多层框架中使用组成数据分析方法建模时,时间分配的重新分配对健康结局有何影响?
  • RQ3与直接对原始组成数据应用标准多层模型相比,multilevelcoda 包在推断准确性和不确定性量化方面有何改进?
  • RQ4在小样本多层组成数据设置中,具有信息性先验的贝叶斯方法在估计方面能增强多少?
  • RQ5在多层组成数据背景下,边际效应和平均边际效应如何被有意义地解释?

主要发现

  • multilevelcoda 包通过等距对数比(ilr)方法对部分进行变换,成功实现了对组成数据的贝叶斯多层建模,消除了多重共线性,使有效推断成为可能。
  • 模型的后验样本可直接用于计算可信区间和边际效应,有助于直观解释组成部分的相对变化。
  • 由于引入了先验信息并借助 MCMC 实现了完整的不确定性量化,该方法在小样本情况下表现出稳健性能。
  • 通过后验预测检查可评估模型拟合度,这得益于后验预测分布的可用性。
  • 该包支持响应变量和预测变量均为组成数据,扩展了多层模型在复杂纵向和嵌套组成数据结构中的适用性。
  • 该实现用户友好,仅需提供数据、模型公式和极少配置,使非专家用户也能轻松开展高级组成数据分析。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。