Skip to content

Research at St Andrews

Hierarchical generalized additive models in ecology: an introduction with mgcv

Research output: Contribution to journalArticlepeer-review

DOI

Open Access permissions

Open

Author(s)

Eric J. Pedersen, David L. Miller, Gavin L. Simpson, Noam Ross

School/Research organisations

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

Details

Original languageEnglish
Article numbere6876
Number of pages42
JournalPeerJ
Volume7
DOIs
Publication statusPublished - 27 May 2019

    Research areas

  • Generalized additive models, Hierarchical models, Time series, Functional regression, Smoothing, Regression, Community ecology, Tutorial, Nonlinear estimation

Discover related content
Find related publications, people, projects and more using interactive charts.

View graph of relations

Related by author

  1. Variance propagation for density surface models

    Bravington, M. V., Miller, D. L. & Hedley, S. L., 23 Feb 2021, In: Journal of Agricultural, Biological and Environmental Statistics. First Online, 18 p.

    Research output: Contribution to journalArticlepeer-review

  2. dsmextra: extrapolation assessment tools for density surface models

    Bouchet, P., Miller, D. L., Roberts, J., Mannocci, L., Harris, C. M. & Thomas, L., Nov 2020, In: Methods in Ecology and Evolution. 11, 11, p. 1464-1469 6 p.

    Research output: Contribution to journalArticlepeer-review

  3. Using density surface models to estimate spatio-temporal changes in population densities and trend

    Camp, R. J., Miller, D. L., Thomas, L., Buckland, S. T. & Kendall, S. J., Jul 2020, In: Ecography. 43, 7, p. 1079-1089 11 p.

    Research output: Contribution to journalArticlepeer-review

  4. Understanding the stochastic partial differential equation approach to smoothing

    Miller, D. L., Glennie, R. & Seaton, A. E., 1 Mar 2020, In: Journal of Agricultural, Biological and Environmental Statistics. 25, 1, p. 1-16 16 p.

    Research output: Contribution to journalArticlepeer-review

Related by journal

  1. PeerJ (Journal)

    David Ellard Keith Ferrier (Member of editorial board)

    2017 → …

    Activity: Publication peer-review and editorial work typesEditor of research journal

  2. PeerJ (Journal)

    Gozde Ozakinci (Editor)

    2015

    Activity: Publication peer-review and editorial work typesEditor of research journal

  3. PeerJ (Journal)

    Ildiko Maureen Lara Somorjai (Reviewer)

    2015 → …

    Activity: Publication peer-review and editorial work typesPeer review of manuscripts

  4. PeerJ (Journal)

    Maria Dornelas (Member of editorial board)

    2014 → …

    Activity: Publication peer-review and editorial work typesEditor of research journal

Related by journal

  1. Characterization of DNA methylation in Malawian Mycobacterium tuberculosis clinical isolates

    Ndhlovu, V., Kiran, A., Sloan, D. J., Mandala, W., Nliwasa, M., Everett, D. B., Kumwenda, B., Mwapasa, M., Kontogianni, K., Kamdolozi, M., Corbett, E., Caws, M. & Davies, G., 16 Dec 2020, In: PeerJ. 8, e10432.

    Research output: Contribution to journalArticlepeer-review

  2. Investigating self-recognition in bonobos: mirror exposure reduces looking time to self but not unfamiliar conspecifics

    Shorland, G., Genty, E., Guéry, J-P. & Zuberbühler, K., 28 Aug 2020, In: PeerJ. 8, 19 p., e9685.

    Research output: Contribution to journalArticlepeer-review

  3. Tropical peatlands and their conservation are important in the context of COVID-19 and potential future (zoonotic) disease pandemics

    Harrison, M. E., Wijedasa, L. S., Cole, L. E. S., Cheyne, S. M., Choiruzzad, S. A. B., Chua, L., Dargie, G. C., Ewango, C. E. N., Honorio Coronado, E. N., Ifo, S. A., Imron, M. A., Kopansky, D., Lestarisa, T., O’Reilly, P. J., Van Offelen, J., Refisch, J., Roucoux, K., Sugardjito, J., Thornton, S. A., Upton, C. & 2 others, Page, S. & Roberts, D. (ed.), 17 Nov 2020, In: PeerJ. 8, 43 p., e10283.

    Research output: Contribution to journalLiterature reviewpeer-review

  4. White-handed gibbons discriminate context-specific songs compositions

    Andrieu, J., Penny, S. G., Bouchet, H., Malaivijitnond, S., Reichard, U. H. & Zuberbühler, K., 3 Aug 2020, In: PeerJ. 8, 23 p., e9477.

    Research output: Contribution to journalArticlepeer-review

ID: 259182806

Top