21
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      Hierarchical generalized additive models in ecology: an introduction with mgcv

      research-article

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          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 collections

          Most cited references24

          • Record: found
          • Abstract: not found
          • Article: not found
          Is Open Access

          Smoothing Parameter and Model Selection for General Smooth Models

            Bookmark
            • Record: found
            • Abstract: not found
            • Article: not found

            A Correspondence Between Bayesian Estimation on Stochastic Processes and Smoothing by Splines

              Bookmark
              • Record: found
              • Abstract: not found
              • Article: not found

              The Statistical Analysis of Ecophysiological Response Curves Obtained from Experiments Involving Repeated Measures

                Bookmark

                Author and article information

                Contributors
                Journal
                PeerJ
                PeerJ
                PeerJ
                PeerJ
                PeerJ
                PeerJ Inc. (San Diego, USA )
                2167-8359
                27 May 2019
                2019
                : 7
                : e6876
                Affiliations
                [1 ]Northwest Atlantic Fisheries Center, Fisheries and Oceans Canada , St. John’s, NL, Canada
                [2 ]Department of Biology, Memorial University of Newfoundland , St. John’s, NL, Canada
                [3 ]Centre for Research into Ecological and Environmental Modelling, University of St Andrews , St Andrews, UK
                [4 ]School of Mathematics and Statistics, University of St Andrews , St Andrews, Scotland, UK
                [5 ]Institute of Environmental Change and Society, University of Regina , Regina, SK, Canada
                [6 ]Department of Biology, University of Regina , Regina, SK, Canada
                [7 ]EcoHealth Alliance , New York, NY, USA
                Author information
                http://orcid.org/0000-0003-1016-540X
                http://orcid.org/0000-0002-9640-6755
                http://orcid.org/0000-0002-9084-8413
                http://orcid.org/0000-0002-2136-0000
                Article
                6876
                10.7717/peerj.6876
                6542350
                31179172
                f0f9c9f3-bc00-40f6-81a7-828b2eb56f95
                © 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.

                History
                : 29 October 2018
                : 31 March 2019
                Funding
                Funded by: Fisheries and Oceans Canada, Natural Science and Engineering Research Council of Canada (NSERC) Discovery Grant
                Award ID: RGPIN-2014-04032
                Funded by: OPNAV N45 and the SURTASS LFA Settlement Agreement, managed by the U.S. Navy’s Living Marine Resources program
                Award ID: N39430-17-C-1982
                Funded by: USAID PREDICT-2 Program
                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. There was no additional external funding received for this study. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
                Categories
                Ecology
                Statistics
                Data Science
                Spatial and Geographic Information Science

                generalized additive models,hierarchical models,time series,functional regression,smoothing,regression,community ecology,tutorial,nonlinear estimation

                Comments

                Comment on this article