Flexible Distributed Lag Models for Count Data Using mgcv.

In this tutorial we present the use of R package mgcv to implement Distributed Lag Non-Linear Models (DLNMs) in a flexible way. Interpretation of smoothing splines as random quantities enables approximate Bayesian inference, which in turn allows uncertainty quantification and comprehensive model che...

Full description

Bibliographic Details
Published in:American Statistician Vol. 79; no. 3; pp. 371 - 383
Main Authors: Economou, Theo, Parliari, Daphne, Tobias, Aurelio, Dawkins, Laura, Steptoe, Hamish, Sarran, Christophe, Stoner, Oliver, Lowe, Rachel, Lelieveld, Jos
Format: Article
Published: Taylor & Francis Ltd Aug2025
Subjects:
Online Access:View this record in EBSCOhost
Description
Summary:In this tutorial we present the use of R package mgcv to implement Distributed Lag Non-Linear Models (DLNMs) in a flexible way. Interpretation of smoothing splines as random quantities enables approximate Bayesian inference, which in turn allows uncertainty quantification and comprehensive model checking. We illustrate various modeling situations using open-access epidemiological data in conjunction with simulation experiments. We demonstrate the inclusion of temporal structures and the use of mixture distributions to allow for extreme outliers. Moreover, we demonstrate interactions of the temporal lagged structures with other covariates with different lagged periods for different covariates. Spatial structures are also demonstrated, including smooth spatial variability and Markov random fields, in addition to hierarchical formulations to allow for non-structured dependency. Posterior predictive simulation is used to ensure models verify well against the data.