J Plant Ecol ›› 2022, Vol. 15 ›› Issue (6): 1302-1307 .DOI: 10.1093/jpe/rtac096

• Research Articles • Previous Articles     Next Articles

glmm.hp: an R package for computing individual effect of predictors in generalized linear mixed models

Jiangshan Lai1,2,*, Yi Zou3, Shuang Zhang4, Xiaoguang Zhang5,6 and Lingfeng Mao1   

  1. 1 College of Biology and the Environment, Nanjing Forestry University, Nanjing 210037, China, 2 Research Center of Quantitative Ecology, Nanjing Forestry University, Nanjing 210037, China, 3 Department of Health and Environmental Sciences, Xi’an JiaotongLiverpool University, Suzhou 215123, China, 4 State Key Laboratory of Urban and Regional Ecology, Research Center for EcoEnvironmental Sciences, Chinese Academy of Sciences, Beijing 100085, China, 5 State Key Laboratory of Freshwater Ecology and Biotechnology, Institute of Hydrobiology, Chinese Academy of Sciences, Wuhan 430072, China, 6 University of Chinese Academy of Sciences, Beijing 100049, China

    *Corresponding author. E-mail: lai@njfu.edu.cn
  • Received:2022-10-31 Accepted:2022-11-01 Online:2022-11-24 Published:2022-12-01

Abstract:

Generalized linear mixed models (GLMMs) have been widely used in contemporary ecology studies. However, determination of the relative importance of collinear predictors (i.e. fixed effects) to response variables is one of the challenges in GLMMs. Here, we developed a novel R package, glmm.hp, to decompose marginal R2 explained by fixed effects in GLMMs. The algorithm of glmm.hp is based on the recently proposed approach ‘average shared variance’ i.e. used for multivariate analysis. We explained the principle and demonstrated the use of this package by simulated dataset. The output of glmm.hp shows individual marginal R2s that can be used to evaluate the relative importance of predictors, which sums up to the overall marginal R2. Overall, we believe the glmm.hp package will be helpful in the interpretation of GLMM outcomes.

Key words: coefficient of determination, commonality analysis, fixed effect, GLMM, hierarchical partitioning, marginal R2, relative importance, variance partitioning

摘要:
glmm.hp:一个计算广义线性混合模型中单个预测变量效应的R包
广义线性混合效应模型(GLMMs)是当代生态学研究中广泛应用的数据分析模型。然而,确定GLMMs中共线性的预测变量(固定效应)对响应变量的相对重要性是个挑战。基于适用于多元分析的‘平均共享方差’的算法,我们开发一个新的R包glmm.hp来分解GLMMs中由固定效应解释的边际(marginal)R2。我们论述了该软件包的工作原理并通过模拟数据集演示了该软件包的使用。glmm.hp 包的输出结果为每个预测变量将获得一个独自的(individual)边际R2,且它们的总和刚好等于模型总的边际R2。总之,我们相信glmm.hp包将有助于解释GLMMs 的输出结果。

关键词: 决定系数, 共性分析, 固定效应, 广义线性混合效应模型, 层次分割, 边际R2, 相对重要性, 方差分解