St Andrews Research Repository

St Andrews University Home
View Item 
  •   St Andrews Research Repository
  • University of St Andrews Research
  • University of St Andrews Research
  • University of St Andrews Research
  • View Item
  •   St Andrews Research Repository
  • University of St Andrews Research
  • University of St Andrews Research
  • University of St Andrews Research
  • View Item
  •   St Andrews Research Repository
  • University of St Andrews Research
  • University of St Andrews Research
  • University of St Andrews Research
  • View Item
  • Login
JavaScript is disabled for your browser. Some features of this site may not work without it.

Hierarchical generalized additive models in ecology : an introduction with mgcv

Thumbnail
View/Open
Pedersen_2019_PeerJ_mgcv_CC.pdf (4.468Mb)
Date
27/05/2019
Author
Pedersen, Eric J.
Miller, David L.
Simpson, Gavin L.
Ross, Noam
Keywords
Generalized additive models
Hierarchical models
Time series
Functional regression
Smoothing
Regression
Community ecology
Tutorial
Nonlinear estimation
QA Mathematics
QH301 Biology
DAS
Metadata
Show full item record
Altmetrics Handle Statistics
Altmetrics DOI Statistics
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.
Citation
Pedersen , E J , Miller , D L , Simpson , G L & Ross , N 2019 , ' Hierarchical generalized additive models in ecology : an introduction with mgcv ' , PeerJ , vol. 7 , e6876 . https://doi.org/10.7717/peerj.6876 , https://doi.org/10.7717/peerj.6876
Publication
PeerJ
Status
Peer reviewed
DOI
https://doi.org/10.7717/peerj.6876
ISSN
2167-8359
Type
Journal article
Rights
Copyright © 2019 Pedersen et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, 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.
Description
This work was funded by Fisheries and Oceans Canada, Natural Science and Engineering Research Council of Canada (NSERC) Discovery Grant (RGPIN-2014-04032), by OPNAV N45 and the SURTASS LFA Settlement Agreement, managed by the U.S. Navy’s Living Marine Resources Program under Contract No. N39430-17-C-1982, and by the USAID PREDICT-2 Program.
Collections
  • University of St Andrews Research
URI
http://hdl.handle.net/10023/17800

Items in the St Andrews Research Repository are protected by copyright, with all rights reserved, unless otherwise indicated.

Advanced Search

Browse

All of RepositoryCommunities & CollectionsBy Issue DateNamesTitlesSubjectsClassificationTypeFunderThis CollectionBy Issue DateNamesTitlesSubjectsClassificationTypeFunder

My Account

Login

Open Access

To find out how you can benefit from open access to research, see our library web pages and Open Access blog. For open access help contact: openaccess@st-andrews.ac.uk.

Accessibility

Read our Accessibility statement.

How to submit research papers

The full text of research papers can be submitted to the repository via Pure, the University's research information system. For help see our guide: How to deposit in Pure.

Electronic thesis deposit

Help with deposit.

Repository help

For repository help contact: Digital-Repository@st-andrews.ac.uk.

Give Feedback

Cookie policy

This site may use cookies. Please see Terms and Conditions.

Usage statistics

COUNTER-compliant statistics on downloads from the repository are available from the IRUS-UK Service. Contact us for information.

© University of St Andrews Library

University of St Andrews is a charity registered in Scotland, No SC013532.

  • Facebook
  • Twitter