Cargando…

Hierarchical generalized additive models in ecology: an introduction with mgcv

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

Descripción completa

Detalles Bibliográficos
Autores principales: Pedersen, Eric J., Miller, David L., Simpson, Gavin L., Ross, Noam
Formato: Online Artículo Texto
Lenguaje:English
Publicado: PeerJ Inc. 2019
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6542350/
https://www.ncbi.nlm.nih.gov/pubmed/31179172
http://dx.doi.org/10.7717/peerj.6876
_version_ 1783422918455197696
author Pedersen, Eric J.
Miller, David L.
Simpson, Gavin L.
Ross, Noam
author_facet Pedersen, Eric J.
Miller, David L.
Simpson, Gavin L.
Ross, Noam
author_sort Pedersen, Eric J.
collection PubMed
description 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.
format Online
Article
Text
id pubmed-6542350
institution National Center for Biotechnology Information
language English
publishDate 2019
publisher PeerJ Inc.
record_format MEDLINE/PubMed
spelling pubmed-65423502019-06-09 Hierarchical generalized additive models in ecology: an introduction with mgcv Pedersen, Eric J. Miller, David L. Simpson, Gavin L. Ross, Noam PeerJ Ecology 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. PeerJ Inc. 2019-05-27 /pmc/articles/PMC6542350/ /pubmed/31179172 http://dx.doi.org/10.7717/peerj.6876 Text en © 2019 Pedersen et al. http://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ) and either DOI or URL of the article must be cited.
spellingShingle Ecology
Pedersen, Eric J.
Miller, David L.
Simpson, Gavin L.
Ross, Noam
Hierarchical generalized additive models in ecology: an introduction with mgcv
title Hierarchical generalized additive models in ecology: an introduction with mgcv
title_full Hierarchical generalized additive models in ecology: an introduction with mgcv
title_fullStr Hierarchical generalized additive models in ecology: an introduction with mgcv
title_full_unstemmed Hierarchical generalized additive models in ecology: an introduction with mgcv
title_short Hierarchical generalized additive models in ecology: an introduction with mgcv
title_sort hierarchical generalized additive models in ecology: an introduction with mgcv
topic Ecology
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6542350/
https://www.ncbi.nlm.nih.gov/pubmed/31179172
http://dx.doi.org/10.7717/peerj.6876
work_keys_str_mv AT pedersenericj hierarchicalgeneralizedadditivemodelsinecologyanintroductionwithmgcv
AT millerdavidl hierarchicalgeneralizedadditivemodelsinecologyanintroductionwithmgcv
AT simpsongavinl hierarchicalgeneralizedadditivemodelsinecologyanintroductionwithmgcv
AT rossnoam hierarchicalgeneralizedadditivemodelsinecologyanintroductionwithmgcv