Hierarchical Partitioning of Adjusted R2 and Explained Deviance
for Generalized Additive Models
Description
Conducts hierarchical partitioning to calculate individual contributions of each predictor towards adjusted R2 and explained deviance for generalized additive models based on output of 'gam()' and 'bam()' in 'mgcv' package, applying the algorithm in this paper: Lai(2024) .