Abstract
Generalized Additive Models(GAMs)are widely employed in ecological research,serving as a powerful tool for ecologists to explore complex nonlinear relationships between a response variable and pre-dictors.Nevertheless,evaluating the relative importance of predictors with concurvity(analogous to collinearity)on response variables in GAMs remains a challenge.To address this challenge,we developed an R package named gam.hp.gam.hp calculates individual R2 values for predictors,based on the concept of'average shared variance',a method previously introduced for multiple regression and canonical an-alyses.Through these individual R2s,which add up to the overall R2,researchers can evaluate the relative importance of each predictor within GAMs.We illustrate the utility of the gam.hp package by evaluating the relative importance of emission sources and meteorological factors in explaining ozone concentra-tion variability in air quality data from London,UK.We believe that the gam.hp package will improve the interpretation of results obtained from GAMs.
基金项目
国家自然科学基金(32271551)
国家重点研发计划(2023YFF0805803)
Metasequoia funding of Nanjing Forestry University()