Related Experiment Video
Updated: Jan 13, 2026

Development of an Individual-Tree Basal Area Increment Model using a Linear Mixed-Effects Approach
Published on: July 3, 2020
Generalized Additive Modeling of Ecological Data With mgcv: New Adequacy Assessment Tools
Julien Mainguy1, Rachel McInerney2, Russell B Millar3
1Direction principale de l'expertise sur la faune aquatique Ministère de l'Environnement, de la Lutte contre les changements climatiques, de la Faune et des Parcs Québec Québec Canada.
None:
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.
More Related Videos
Related Concept Videos
Mechanistic Models: Compartment Models in Individual and Population Analysis
Statistical Methods for Analyzing Epidemiological Data
Assumptions of Survival Analysis
One-Compartment Open Model: Wagner-Nelson and Loo Riegelman Method for ka Estimation
On...
Introduction To Survival Analysis
The primary goal of survival analysis is to estimate survival time—the time...
Mechanistic Models: Compartment Models in Algorithms for Numerical Problem Solving
In individual population analyses, different algorithms are employed, such as Cauchy's method, which uses a...

