Just Another Gibbs Additive Modeller: Interfacing JAGS and mgcv
Simon N Wood

TL;DR
This paper introduces an R interface that automates the integration of mgcv smoothers into JAGS models, simplifying the process of Bayesian inference for complex additive models.
Contribution
It presents the `jagam` function that automatically generates JAGS code from mgcv GAMs, facilitating easier inclusion of smoothers in Bayesian models.
Findings
Automates JAGS model code generation from mgcv GAMs.
Simplifies the inclusion of smoothers in Bayesian JAGS models.
Provides tools for visualization and inference of smooth components.
Abstract
The BUGS language offers a very flexible way of specifying complex statistical models for the purposes of Gibbs sampling, while its JAGS variant offers very convenient R integration via the rjags package. However, including smoothers in JAGS models can involve some quite tedious coding, especially for multivariate or adaptive smoothers. Further, if an additive smooth structure is required then some care is needed, in order to centre smooths appropriately, and to find appropriate starting values. R package mgcv implements a wide range of smoothers, all in a manner appropriate for inclusion in JAGS code, and automates centring and other smooth setup tasks. The purpose of this note is to describe an interface between mgcv and JAGS, based around an R function, `jagam', which takes a generalized additive model (GAM) as specified in mgcv and automatically generates the JAGS model code and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
