ngvb: Latent Non-Gaussian Modelling with 'INLA' and Variational Bayes

Diagnoses whether the latent Gaussian assumption of a model fitted with the 'INLA' package is adequate, and fits latent non-Gaussian extensions that relax it. The function ng.check() reports a Bayes-factor sensitivity diagnostic that says whether, and where, the Gaussian assumption is inadequate; ngvb() then fits the non-Gaussian model by a variational-Bayes loop around 'INLA', adding local flexibility only where the data support it. A single unified engine implements the conditional precision Q(theta, V) = D(theta)^T diag(1/V) D(theta) and owns its normalizing constant, and a model registry covers iid, random-walk, autoregressive, Ornstein-Uhlenbeck, intrinsic-CAR (besag), simultaneous-autoregression, 'SPDE'/Matern and seasonal models. Methods follow Cabral, Bolin and Rue (2024) <doi:10.1080/01621459.2023.2296704> and Cabral, Bolin and Rue (2025) <doi:10.1093/jrsssb/qkae107>.

Version: 0.2.1
Depends: R (≥ 4.1)
Imports: Matrix, methods, stats, graphics, utils, codetools, GIGrvg, ggplot2, patchwork
Suggests: INLA, testthat (≥ 3.0.0), fmesher, sf, spData, spdep, knitr, rmarkdown, bslib
Published: 2026-11-19
DOI: 10.32614/CRAN.package.ngvb (may not be active yet)
Author: Rafael Cabral [aut, cre, cph]
Maintainer: Rafael Cabral <rafael.medeiros.cabral at gmail.com>
BugReports: https://github.com/rafaelcabral-ai/ngvb/issues
License: GPL (≥ 3)
URL: https://github.com/rafaelcabral-ai/ngvb, https://rafaelcabral-ai.github.io/ngvb/
NeedsCompilation: no
Additional_repositories: https://inla.r-inla-download.org/R/stable
Materials: README
CRAN checks: ngvb results

Documentation:

Reference manual: ngvb.html , ngvb.pdf
Vignettes: ngvb: latent non-Gaussian models with R-INLA (source)

Downloads:

Package source: ngvb_0.2.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ngvb to link to this page.