cosimmr:一个用于快速拟合带协变量的稳定同位素混合模型的R包
cosimmr: an R package for fast fitting of Stable Isotope Mixing Models with covariates
AI总结:
本文提出R包cosimmr,在稳定同位素混合模型中引入协变量,并采用固定形式变分贝叶斯替代传统MCMC,在保持精度的同时将拟合速度提升一个数量级。
摘要:
动物食性研究以及不同食物对其食性的比例贡献是生态学中的一项重要任务。稳定同位素混合模型(SIMMs)是研究动物食性和理解动物如何与其环境相互作用的重要工具。我们推出了cosimmr,这是一个新的R包,旨在估计SIMMs中的食性比例时纳入协变量,并提供简单的函数来生成图形和汇总统计量。纳入协变量使用户能够对其系统进行更深入的分析,并获得对所研究生物食性的新见解。上一代SIMMs的一个常见问题是,它们在生成食性估计的后验分布时非常缓慢,尤其是对于更复杂的模型结构,例如纳入协变量时。许多传统SIMMs广泛使用的马尔可夫链蒙特卡洛(MCMC)算法通常需要非常大量的迭代才能达到收敛。相比之下,cosimmr使用固定形式变分贝叶斯(FFVB),我们证明该方法在速度上可提高一个数量级,且没有可察觉的精度损失。我们提供了该模型的完整数学描述,其中包括对营养级判别和浓度依赖性的校正,并针对最先进的MixSIAR模型评估了其性能。虽然MCMC从长期来看保证收敛到后验分布,但FFVB收敛到后验分布的一个近似值,这可能导致次优性能。然而我们表明,在我们测试的所有示例中,该包在极短的时间内产生了等效的结果。该包设计为用户友好型,并基于现有的simmr框架。
英文摘要:
The study of animal diets and the proportional contribution that different foods make to their diets is an important task in ecology. Stable Isotope Mixing Models (SIMMs) are an important tool for studying an animal's diet and understanding how the animal interacts with its environment. We present cosimmr, a new R package designed to include covariates when estimating diet proportions in SIMMs, with simple functions to produce plots and summary statistics. The inclusion of covariates allows for users to perform a more in-depth analysis of their system and to gain new insights into the diets of the organisms being studied. A common problem with the previous generation of SIMMs is that they are very slow to produce a posterior distribution of dietary estimates, especially for more complex model structures, such as when covariates are included. The widely-used Markov chain Monte Carlo (MCMC) algorithm used by many traditional SIMMs often requires a very large number of iterations to reach convergence. In contrast, cosimmr uses Fixed Form Variational Bayes (FFVB), which we demonstrate gives up to an order of magnitude speed improvement with no discernible loss of accuracy. We provide a full mathematical description of the model, which includes corrections for trophic discrimination and concentration dependence, and evaluate its performance against the state of the art MixSIAR model. Whilst MCMC is guaranteed to converge to the posterior distribution in the long term, FFVB converges to an approximation of the posterior distribution, which may lead to sub-optimal performance. However we show that the package produces equivalent results in a fraction of the time for all the examples on which we test. The package is designed to be user-friendly and is based on the existing simmr framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。