Hierarchical generalized additive models in ecology: an introduction with mgcv
2019/05/27 by Eric J. Pedersen, David L. Miller, Gavin L. Simpson +1 · 2 voices · 98 citations
Environmental Science · Computer Science · #Ecology and Vegetation Dynamics Studies #Data Analysis with R #Forest ecology and management
paper · doi:10.7717/peerj.6876
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 .
Citations
Cited by
- Macro‐ and microclimate interactively shape species diversity of multiple taxa in mountain landscapes
- Drought Intensity Shapes Soil Legacy Effects on Grassland Plant and Soil Microbial Communities and Their Responses to Future Drought
- Reassuring body contact promotes social tolerance in bonobos and chimpanzees
- The globalizability of temporal discounting
- Spatially explicit Bayesian hierarchical models improve estimates of avian population status and trends
- Characterising non-household contact patterns relevant to respiratory transmission in the USA: analysis of a cross-sectional survey
- Fish supply distinct nutrients and dissolved organic matter composition relative to ambient concentrations in northern lakes
- Long‐term nutrient load reductions and increasing lake <scp>TN</scp> : <scp>TP</scp> stoichiometry decrease phytoplankton biomass and diversity in a large shallow lake
- Global variability in LGM cooling amongst paleoclimate datasets affects biome reconstructions in mountains
- Rising Temperatures Advance Start and End of the Breeding Season of an Alpine Bird
- Mercury records from natural archives reveal ecosystem responses to changing atmospheric deposition
- Temperature effect on scrub typhus incidence in South Korea: the projection for climate change
- The perception of major life events across the life course
- Method: Using generalized additive models in the livestock animal sciences
- Carbon and nitrogen dynamics in subsoils after 20 years of added precipitation in a Mediterranean grassland
- Photosynthesis, heat, and structure: an evident hierarchy of environmental conditions driving wetland carbon assimilation
- Emergent patterns of reef fish diversity correlate with coral assemblage shifts along the Great Barrier Reef
- Multivariate Analyses of Tongue Contours from Ultrasound Tongue Imaging
- Spatiotemporal dynamics of fine dead surface fuel moisture content in a Colorado mixed-conifer forest
- Diet and gut microbiome of skipjack tuna (Katsuwonus pelamis) as indicators of environmental changes
- Tracking interannual variation of a large‐scale ocean front influences foraging in a mesopelagic predator
- How Interpretable and Trustworthy are GAMs?
- Forest temperature buffering in pure and mixed stands: A high-resolution temporal analysis with generalized additive models
- Application of Conservation Genomics to Investigate the Role of Pathogens on the Migration of Sea‐Run Brown Trout (<i>Salmo trutta</i>)
- The ageing musician: Evidence of a downwards trend in song tempo as a function of artist age
- High frequency root dynamics: sampling and interpretation using replicated robotic minirhizotrons
- Discovering Causal Relationships Between Time Series With Spatial Structure
- Movement in <scp>3D</scp> : Novel Opportunities for Understanding Animal Behaviour and Space Use
- Spatial distribution of ovigerous females and potential offspring production of the southern king crab (Lithodes santolla)
- Analyzing a phenological anomaly in Yucca of the southwestern United States
- <i>dlmoR:</i> An open-source R package for the dim-light melatonin onset (DLMO) hockey-stick method
- Demographic processes constrain global growth in gender egalitarianism
- Land cover and natural riverscape heterogeneity shape in-stream thermal regimes: Implications for Atlantic salmon (Salmo salar) conservation
- Long‐term declines and recovery of meadow area across the world’s seagrass bioregions
- Sociohistorical contexts of racial violence: sundown towns and the durability of racialized public space
- Spatial Change of Dominant Baltic Sea Demersal Fish Across Two Decades
- Monitoring small‐scale fisheries through participatory, app‐based surveys in the tropical archipelago of São Tomé and Príncipe
- Movement behavior of swordfish provisions connectivity between the temperate and tropical southwest Pacific Ocean
- Climate Change Impacts on the Phenology of Laurentian Great Lakes Fishes
- Modeling Cycles, Trends and Time-Varying Effects in Dynamic Structural Equation Models with Regression Splines
- Fossil pollen data can reconstruct robust spatial patterns of biodiversity in the past
- Sub-national disparities in the global mobility of academic talent
- Multimodal Social Media Analysis Reveals Emotional Diversity in Urban Green Spaces
- Early‐life temperature drives recruitment success in Eurasian perch ( <scp> <i>P</i> </scp> <i>erca fluviatilis</i> ) populations
- Parasitism by, species composition, morphometry, and parasitoidism of <i>Protocalliphora</i> bird blowflies (Diptera: Calliphoridae) in Quebec’s farmlands: a 16-year dataset
- Early-life temperature drives recruitment success in Eurasian perch ( <i>Perca fluviatilis</i> ) populations
- How to deal with darkness: Modelling and visualization of zero-inflated personal light exposure data on a logarithmic scale
- High spatial pair cohesion during and after breeding in a socially monogamous territorial passerine
- Rare Long‐Term Data Reveal the Seasonal Dietary Plasticity of Mandrills (<i>Mandrillus sphinx</i>) in Response to Fruiting Tree Phenology
- Modelling Amazon fire regimes under climate change scenarios
- Allochthonous matter quality regulates functionality of lake zooplankton
- Human impacts mediate freshwater invertebrate community responses to and recovery from drought
- Drone-based monitoring and geomorphology of southern giant petrel nests near Palmer Station, western Antarctic Peninsula
- Linking vertical movements of large pelagic predators with distribution patterns of biomass in the open ocean
- Spatiotemporal scavenging dynamics of introduced red foxes across distinct Australian ecosystems
- Introgression of a Terminal Segment From Chromosome <scp>3S</scp> of <i>Festuca mairei</i> Increases Drought Resistance of <i>Lolium perenne</i>
- Fetal Head Growth and Head Circumference at Birth in Children of Women with Psychotic Disorders and Population-Based Controls
- Linking aquatic vegetation structure with ecosystem metabolism throughout the Klamath River, California, <scp>USA</scp>
- Centennial‐Scale Intensification of Wet and Dry Extremes in North America
- Bearing the heat: Forest cover and human disturbance mediate brown bear behavior under thermal stress
- Using acoustic telemetry to inform standardisation of catch rates from passive fishing gear: A case study using dusky flathead (Platycephalus fuscus)
- Changes in tropical leafing behaviour with climate change over nine decades: A case study from the Singapore Botanic Gardens
- Artificial light alters spatial and temporal habitat use by a crepuscular aerial insectivore
- Effects of Different Repetitive Transcranial Magnetic Stimulation Targets for Enhancing Motor Learning: A Single‐Blind Randomized Controlled Trial
- Modeling the habitat suitability for spawning and recruitment of the Atlantic horse mackerel (Trachurus trachurus) and the European sardine (Sardina pilchardus) along the Southern Alboran Sea (Moroccan Mediterranean coasts): a comparative analysis
- CEP-IP: An Explainable Framework for Cell Subpopulation Identification in Single-cell Transcriptomics
- Best practices in metabarcoding of fungi: From experimental design to results
- Examining soil organic carbon in the mountainous peat swamps of the Zoigê Plateau in China's Qinghai‐Tibet Plateau
- Adding structure to generalized additive models, with applications in ecology
- Modelling phenology using ordered categorical generalized additive models
- High‐frequency monitoring data reveal substantial variability in the intrinsic predictability of ecosystem dynamics
- Contribution of a Pre‐Processing Phase to Create a Biomass Indicator From Big Data With an Application to the Striped Red‐Mullet in the Bay of Biscay
- Patterns and drivers of vegetation resilience across China and the negative impact of warm droughts
- Seasonal morphotypes of Drosophila suzukii differ in key life-history traits during and after a prolonged period of cold exposure. [europepmc]
- The modulation of brain network integration and arousal during exploration. [europepmc]
- Seasonal niche differentiation among closely related marine bacteria. [europepmc]
- Antibiotics and fecal transfaunation differentially affect microbiota recovery, associations, and antibiotic resistance in lemur guts. [europepmc]
- Serial single-cell genomics reveals convergent subclonal evolution of resistance as early-stage breast cancer patients progress on endocrine plus CDK4/6 therapy. [europepmc]
- Using linear and natural cubic splines, SITAR, and latent trajectory models to characterise nonlinear longitudinal growth trajectories in cohort studies. [europepmc]
- Aedes albopictus abundance and phenology along an altitudinal gradient in Lazio region (central Italy). [europepmc]
- PM10 and Other Climatic Variables Are Important Predictors of Seasonal Variability of Coccidioidomycosis in Arizona. [europepmc]
- Attenuated Lower Limb Stretch-Shorten-Cycle Capacity in ACL Injured vs. Non-Injured Female Alpine Ski Racers: Not Just a Matter of Between-Limb Asymmetry. [europepmc]
- Generalized additive models to analyze nonlinear trends in biomedical longitudinal data using R: Beyond repeated measures ANOVA and linear mixed models. [europepmc]
- The globalizability of temporal discounting. [europepmc]
- Statistical and agent-based modelling of the transmissibility of different SARS-CoV-2 variants in England and impact of different interventions. [europepmc]
- Functional extinction of dugongs in China. [europepmc]
- Sleep EEG in young people with 22q11.2 deletion syndrome: A cross-sectional study of slow-waves, spindles and correlations with memory and neurodevelopmental symptoms. [europepmc]
- Ecological determinants of rabies virus dynamics in vampire bats and spillover to livestock. [europepmc]
- Investigating the role of auditory and visual sensory inputs for inducing relaxation during virtual reality stimulation. [europepmc]
- Generalized models for quantifying laterality using functional transcranial Doppler ultrasound. [europepmc]
- Rodent trapping studies as an overlooked information source for understanding endemic and novel zoonotic spillover. [europepmc]
- Plasmodium falciparum gametocyte carriage in longitudinally monitored incident infections is associated with duration of infection and human host factors. [europepmc]
- Steamed broccoli sprouts alleviate DSS-induced inflammation and retain gut microbial biogeography in mice. [europepmc]
- Nowcasting the 2022 mpox outbreak in England. [europepmc]
- Altered sleep architecture following consecutive nights of presleep alcohol. [europepmc]
- The effects of pregnancy, its progression, and its cessation on human (maternal) biological aging. [europepmc]
- Global atmospheric methane uptake by upland tree woody surfaces. [europepmc]
- A family of partial-linear single-index models for analyzing complex environmental exposures with continuous, categorical, time-to-event, and longitudinal health outcomes. [europepmc]
Discussions
Related