z-logo
open-access-imgOpen Access
Hierarchical generalized additive models in ecology: an introduction with mgcv
Author(s) -
Eric J. Pedersen,
David L. Miller,
Gavin L. Simpson,
Noam Ross
Publication year - 2019
Publication title -
peerj
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.927
H-Index - 70
ISSN - 2167-8359
DOI - 10.7717/peerj.6876
Subject(s) - generalized additive model , covariate , hierarchical database model , computer science , generalized linear model , extension (predicate logic) , code (set theory) , multilevel model , additive model , mixed model , hierarchical generalized linear model , function (biology) , generalized linear mixed model , theoretical computer science , ecology , mathematics , data mining , machine learning , programming language , biology , set (abstract data type) , evolutionary biology
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 .

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom