Learn R Programming

gam.hp (version 0.0-5)

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) .

Copy Link

Version

Install

install.packages('gam.hp')

Monthly Downloads

279

Version

0.0-5

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Jiangshan Lai

Last Published

October 24th, 2025

Functions in gam.hp (0.0-5)

gam.hp

Hierarchical Partitioning of Adjusted R2 and Explained Deviance for Generalized Additive Models
creatbin

Internal function for glmm.hp() to create diagonal matrix
permu.gamhp

Permutation Test of Hierarchical Partitioning for GAM Analysis
plot.gamhp

Plot for a gam.hp object
genList

Internal function for glmm.hp()
odd

Internal function for glmm.hp() to determine whether the odd number