bioRxivEcologyPreprint
Step selection analysis with non-linear and random effects in mgcv
N. J. Klappstein, T. Michelot, J. Fieberg, E. J. Pedersen, C. Field, J. Mills Flemming
Abstract
Step selection analysis is used to jointly describe animal movement patterns and habitat preferences. Recent work has extended this framework to model inter-individual differences, account for unexplained structure in animals space use, and capture temporally-varying patterns of movement and habitat selection.In this paper, we formulate step selection functions with penalised smooths (similar to generalised additive models) to unify new and existing extensions, and conveniently implement the models in the popular, open-source mgcv R package. We explore non-linear patterns of movement and habitat selection, and use the equivalence between penalised smoothing splines and random effects to implement individual-level and spatial random effects. This framework can also be used to fit varying-coefficient models to account for temporally or spatially-heterogeneous patterns of selection (e.g., resulting from behavioural variation), or any other non-linear interactions between drivers of the animals movement decisions. We provide the necessary technical details to understand several key special cases of smooths and their implementation in mgcv, showcase the ecological relevance using two illustrative examples, and provide R code (available at https://github.com/NJKlappstein/smoothSSF) to facilitate the adoption of these methods. This paper is a broad overview of how smooth effects can be applied to increase the flexibility and biological realism of step selection analysis.
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Accounting for unobserved spatial variation in step selection analyses of animal movement via spatial random effects
R. Arce Guillen, F. Lindgren, … U. E. Schlaegel·bioRxiv·Jan 17, 2023
- How to scale up from animal movement decisions to spatio-temporal patterns: an approach via step selection
J. R. Potts, L. Borger·bioRxiv·Jul 19, 2022
- Flexible movement kernel estimation in habitat selection analyses with generalized additive models
Rafael Arce Guillen, Jennifer Pohle, … Ulrike E. Schlägel·Methods in Ecology and EvolutionPeer-reviewed·Jun 23, 2025
- Using Random Forests to Infer Nonlinear Step Selection Effects
Phillip T. Koshute, Michael S. Robinette, William F. Fagan·bioRxiv·Mar 27, 2025
- Modeling individual variability in habitat selection and movement using integrated step-selection analyses
N. Chatterjee, D. Wolfson, … J. Fieberg·bioRxiv·Jul 31, 2023
- Accounting for individual-specific variation in habitat-selection studies: Efficient estimation of mixed-effects models using Bayesian or frequentist computation
S. Muff, J. Signer, J. Fieberg·bioRxiv·Jan 29, 2019