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 extensionEvery 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.
ngvb_custom(), and borrowing
ready-made operators from the ngme2 package.The full function reference is at https://rafaelcabral-ai.github.io/ngvb/reference/index.html.