Integrative Biology Journals

Plant Diversity ›› 2025, Vol. 47 ›› Issue (05): 709-717.DOI: 10.1016/j.pld.2025.06.003

    Next Articles

Evaluating the relative importance of phylogeny and predictors in phylogenetic generalized linear models using the phylolm.hp R package

Jiangshan Lai (赖江山)a,b,c, Yan He (何雁)a,b, Mi Hou (侯蜜a,b, Aiying Zhang (张爱英)a,b, Gang Wang (王刚)d, Lingfeng Mao (毛岭峰)a,b   

  1. a. Co-Innovation Center for Sustainable Forestry in Southern China, College of Ecology and Environment, Nanjing Forestry University, Nanjing 210037, China;
    b. Research Center of Quantitative Ecology, Nanjing Forestry University, Nanjing 210037, China;
    c. University of Chinese Academy of Sciences, Beijing 100049, China;
    d. Yunnan Key Laboratory of Forest Ecosystem Stability and Global Change, Xishuangbanna Tropical Botanical Garden, Chinese Academy of Sciences, Mengla 666303, China
  • Received:2025-05-22 Revised:2025-06-06 Online:2025-09-29 Published:2025-09-29
  • Contact: Jiangshan Lai,E-mail:lai@njfu.edu.cn;Lingfeng Mao,E-mail:maolingfeng2008@163.com
  • Supported by:
    This research was supported by the National Natural Science Foundation of China (32271551, 32571954), National Key Research and Development Program of China (2023YFF0805800) and the Metasequoia funding of Nanjing Forestry University.

Evaluating the relative importance of phylogeny and predictors in phylogenetic generalized linear models using the phylolm.hp R package

Jiangshan Lai (赖江山)a,b,c, Yan He (何雁)a,b, Mi Hou (侯蜜a,b, Aiying Zhang (张爱英)a,b, Gang Wang (王刚)d, Lingfeng Mao (毛岭峰)a,b   

  1. a. Co-Innovation Center for Sustainable Forestry in Southern China, College of Ecology and Environment, Nanjing Forestry University, Nanjing 210037, China;
    b. Research Center of Quantitative Ecology, Nanjing Forestry University, Nanjing 210037, China;
    c. University of Chinese Academy of Sciences, Beijing 100049, China;
    d. Yunnan Key Laboratory of Forest Ecosystem Stability and Global Change, Xishuangbanna Tropical Botanical Garden, Chinese Academy of Sciences, Mengla 666303, China
  • 通讯作者: Jiangshan Lai,E-mail:lai@njfu.edu.cn;Lingfeng Mao,E-mail:maolingfeng2008@163.com
  • 基金资助:
    This research was supported by the National Natural Science Foundation of China (32271551, 32571954), National Key Research and Development Program of China (2023YFF0805800) and the Metasequoia funding of Nanjing Forestry University.

Abstract: Comparative analyses in ecology and evolution often face the challenge of controlling for the effects of shared ancestry (phylogeny) from those of ecological or trait-based predictors on species traits. Phylogenetic Generalized Linear Models (PGLMs) address this issue by integrating phylogenetic relationships into statistical models. However, accurately partitioning explained variance among correlated predictors remains challenging. The phylolm.hp R package tackles this problem by extending the concept of “average shared variance” to PGLMs, enabling nuanced quantification of the relative importance of phylogeny and other predictors. The package calculates individual likelihood-based R2 contributions of phylogeny and each predictor, accounting for both unique and shared explained variance. This approach overcomes limitations of traditional partial R2 methods, which often fail to sum the total R2 due to multicollinearity. We demonstrate the functionality of phylolm.hp through two case studies: one involving continuous trait data (maximum tree height in Californian species) and another focusing on binary trait data (species invasiveness in North American forests). The phylolm.hp package offers researchers a powerful tool to disentangle the contributions of phylogenetic and ecological predictors in comparative analyses.

Key words: Average shared variance, Comparative analysis, Hierarchical portioning, Phylogenetic signal, Variation partitioning

摘要: Comparative analyses in ecology and evolution often face the challenge of controlling for the effects of shared ancestry (phylogeny) from those of ecological or trait-based predictors on species traits. Phylogenetic Generalized Linear Models (PGLMs) address this issue by integrating phylogenetic relationships into statistical models. However, accurately partitioning explained variance among correlated predictors remains challenging. The phylolm.hp R package tackles this problem by extending the concept of “average shared variance” to PGLMs, enabling nuanced quantification of the relative importance of phylogeny and other predictors. The package calculates individual likelihood-based R2 contributions of phylogeny and each predictor, accounting for both unique and shared explained variance. This approach overcomes limitations of traditional partial R2 methods, which often fail to sum the total R2 due to multicollinearity. We demonstrate the functionality of phylolm.hp through two case studies: one involving continuous trait data (maximum tree height in Californian species) and another focusing on binary trait data (species invasiveness in North American forests). The phylolm.hp package offers researchers a powerful tool to disentangle the contributions of phylogenetic and ecological predictors in comparative analyses.

关键词: Average shared variance, Comparative analysis, Hierarchical portioning, Phylogenetic signal, Variation partitioning