Related Experiment Video
Updated: Jan 23, 2026

Heuristic Mining of Hierarchical Genotypes and Accessory Genome Loci in Bacterial Populations
Published on: December 7, 2021
Hierarchical generalized additive models in ecology: an introduction with mgcv
Eric J Pedersen1,2, David L Miller3,4, Gavin L Simpson5,6
1Northwest Atlantic Fisheries Center, Fisheries and Oceans Canada, St. John's, NL, Canada.
Abstract:
In this paper, we discuss an extension to two popular approaches to modeling complex structures in ecological data: the generalized additive model (GAM) and the hierarchical model (HGLM). The hierarchical GAM (HGAM), allows modeling of nonlinear functional relationships between covariates and outcomes where the shape of the function itself varies between different grouping levels. We describe the theoretical connection between HGAMs, HGLMs, and GAMs, explain how to model different assumptions about the degree of intergroup variability in functional response, and show how HGAMs can be readily fitted using existing GAM software, the mgcv package in R. We also discuss computational and statistical issues with fitting these models, and demonstrate how to fit HGAMs on example data. All code and data used to generate this paper are available at: github.com/eric-pedersen/mixed-effect-gams.
Related Concept Videos
Ecological Disturbance
Ecological Succession
Ecological Niches
Introduction to Electrophilic Addition Reactions of Alkenes
Addition and elimination...
Generalized Hooke's Law
Generalized Anxiety Disorder

