ngvb: latent non-Gaussian models with R-INLA

ngvb takes an ordinary R-INLA latent Gaussian model (LGM), checks whether the latent Gaussian assumption is adequate, and extends it to a latent non-Gaussian model (LnGM), each in one line:

LGM <- inla(y ~ f(s, model = "rw1"), data = d, control.compute = list(config = TRUE))

ng.check(LGM)       # is the latent Gaussian assumption adequate, and where not?
LnGM <- ngvb(LGM)   # fit the non-Gaussian extension

Every worked example in the documentation needs INLA, which is not distributed on CRAN. The vignettes are therefore hosted on the package website rather than shipped with the package, so that they always build against a working INLA installation. They are listed below.

Vignettes

The full function reference is at https://rafaelcabral-ai.github.io/ngvb/reference/index.html.

Installing INLA

install.packages("INLA",
  repos = c(getOption("repos"), INLA = "https://inla.r-inla-download.org/R/stable"),
  dep = TRUE)

References