Generalized Additive Modeling of Ecological Data With mgcv: New Adequacy Assessment Tools

Generalized additive models (GAMs) are a semi-parametric extension of generalized linear models (GLMs) that allow incorporating different forms of nonlinearities commonly encountered in ecological relationships, thus frequently offering a better statistical description than GLMs in such cases. Due to the use of smooth functions, however, validating that the observed data represent a plausible realization of a fitted GAM according to the underlying distributional assumptions being used is less straightforward than with GLMs. Moreover, if the number of basis dimensions used in smooth terms to control the degree of flexibility is set too large, overfitting can arise despite in-built penalization procedures aimed at preventing excessive wiggliness. Here, we present how GAMs fitted with the mgcv package in R can be assessed for their adequacy based on half-normal plots with a simulated envelope using newly-available helper functions for the hnp package. A proposed metric relying on the mgcViz package is also presented to help detect both under- and overfitting relative to a predictor of interest from a realized coverage perspective. Three fisheries-related examples analyzing continuous data, counts, and discrete proportions are then presented to illustrate the usefulness of these approaches in providing more statistical context for the interpretation of nonlinear ecological relationships.

Authors

Institutions

Publication Details

Journal
Ecology and Evolution
Published
2026-01-01
DOI
https://doi.org/10.1002/ece3.72825
Primary Topic
Marine and fisheries research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Generalized Additive Modeling of Ecological Data With mgcv: New Adequacy Assessment Tools

Martin Bélanger, Éliane Valiquette, Russell Millar, Rachel McInerney et al.
Ecology and Evolution
Marine and fisheries research
article

Generalized Additive Modeling of Ecological Data With mgcv: New Adequacy Assessment Tools

Martin Bélanger, Éliane Valiquette, Russell Millar, Rachel McInerney, Julien Mainguy
article en

Abstract

Generalized additive models (GAMs) are a semi-parametric extension of generalized linear models (GLMs) that allow incorporating different forms of nonlinearities commonly encountered in ecological relationships, thus frequently offering a better statistical description than GLMs in such cases. Due to the use of smooth functions, however, validating that the observed data represent a plausible realization of a fitted GAM according to the underlying distributional assumptions being used is less straightforward than with GLMs. Moreover, if the number of basis dimensions used in smooth terms to control the degree of flexibility is set too large, overfitting can arise despite in-built penalization procedures aimed at preventing excessive wiggliness. Here, we present how GAMs fitted with the mgcv package in R can be assessed for their adequacy based on half-normal plots with a simulated envelope using newly-available helper functions for the hnp package. A proposed metric relying on the mgcViz package is also presented to help detect both under- and overfitting relative to a predictor of interest from a realized coverage perspective. Three fisheries-related examples analyzing continuous data, counts, and discrete proportions are then presented to illustrate the usefulness of these approaches in providing more statistical context for the interpretation of nonlinear ecological relationships.

Ecology and EvolutionVol. 16(1)
University of Auckland (NZ), National University of Ireland, Maynooth (IE), Ministère des Ressources naturelles et des Forêts (CA)
Openalex Percentile: Top 95%
Marine and fisheries research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Generalized Additive Modeling of Ecological Data With mgcv: New Adequacy Assessment Tools — Martin Bélanger, Éliane Valiquette, et al. · Ecology and Evolution (2026) | TGRS Research Map | TGRS