The bdlnm R package, now on CRAN, implements Bayesian Distributed Lag Non-Linear Models (B-DLNMs) using Integrated Nested Laplace Approximation (INLA) as a fast alternative to MCMC. It extends the existing dlnm package to a full Bayesian setting, enabling flexible exposure-lag-response modeling with uncertainty quantification via posterior distributions. A hands-on tutorial demonstrates fitting a temperature-mortality model on London data (2000–2012), estimating the minimum mortality temperature, generating 3D exposure-lag-response surfaces, lag-response curves, and computing attributable fractions. Results show ~17.5% of deaths in the 75+ population were attributable to non-optimal temperatures (~69,178 deaths). Upcoming features include multi-location analyses and spatial B-DLNMs.

16m read timeFrom r-bloggers.com
Post cover image
Table of contents
BackgroundInstalling and loading the packageHands-on exampleConclusionsReferences

Sort: