The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

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
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: ngvb_0.2.1.zip, r-oldrel: ngvb_0.2.1.zip
macOS binaries: r-release (arm64): ngvb_0.2.1.tgz, r-oldrel (arm64): ngvb_0.2.1.tgz, r-release (x86_64): ngvb_0.2.1.tgz, r-oldrel (x86_64): ngvb_0.2.1.tgz

Linking:

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

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.