Sequential reduction for discrete latent variables in ecological and evolutionary models using RTMB

📅 2026-09-11
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
本文介绍了一种使用RTMB包的方法,通过顺序减少离散潜变量来加速生态和进化模型中的参数估计,替代了传统的MCMC方法。
📝 Abstract
Statistical models of ecological and evolutionary dynamics often include latent variables that are either continuous (e.g., average body size) or discrete (e.g., numerical abundance). Mixed-type hierarchical models containing both are typically fitted using Markov chain Monte Carlo (MCMC), which can be prohibitively slow for large models. Here, we introduce an alternative in the R package RTMB that automates the sequential reduction of small groups of related discrete variables, allowing them to be efficiently marginalized. Sequential reduction is combined with automatic differentiation and the Laplace approximation to estimate parameters and predict both continuous and discrete variables. We demonstrate speed and flexibility using demographic examples (occupancy, dynamic occupancy, N-mixture, and open dynamic N-mixture models), benchmarking RTMB against JAGS and unmarked. We then develop two novel applications. The first is a multi-site open N-mixture model with a spatial latent variable governing site-specific initial abundance and recruitment, which shows that continuous Gaussian Markov random fields can be estimated jointly with discrete abundance dynamics in under a minute. The second is phylogenetic trait imputation for a published data set of female Liolaemus lizards, where we jointly impute a binary trait (viviparity), estimate its state-switching rates, and estimate its effect on a continuous trait (body size) during ancestral state reconstruction. This indicates that phylogenetic comparative methods can estimate linkages among discrete and continuous traits. We envision that intuitive and efficient specification of mixed-type models will allow more expressive representation of ecological and evolutionary dynamics.
Problem

Research questions and friction points this paper is trying to address.

discrete latent variables
ecological and evolutionary models
Markov chain Monte Carlo (MCMC)
efficient marginalization
mixed-type hierarchical models
Innovation

Methods, ideas, or system contributions that make the work stand out.

Sequential reduction
Discrete latent variables
RTMB
Automatic differentiation
Laplace approximation
🔎 Similar Papers
C
Christopher L. Cahill
Cahill Analytics, Lansing, Michigan, USA
J
James T. Thorson
Technical University of Denmark, Lyngby, Denmark; Alaska Fisheries Science Center, National Marine Fisheries Service, Seattle, USA
K
Kasper Kristensen
Technical University of Denmark, Lyngby, Denmark