Skip to content

INLAtools

Functionalities for the 'INLA' Package

v0.1.1 · Apr 3, 2026 · GPL (>= 2)

Description

Contain code to work with a C struct, in short cgeneric, to define a Gaussian Markov random (GMRF) model. The cgeneric contain code to specify GMRF elements such as the graph and the precision matrix, and also the initial and prior for its parameters, useful for model inference. It can be accessed from a C program and is the recommended way to implement new GMRF models in the 'INLA' package (<https://www.r-inla.org>). The 'INLAtools' implement functions to evaluate each one of the model specifications from R. The implemented functionalities leverage the use of 'cgeneric' models and provide a way to debug the code as well to work with the prior for the model parameters and to sample from it. The `generic0` can be used to implement intrinsic models with the scaling as proposed in Sørbye & Rue (2014) <doi:10.1016/j.spasta.2013.06.004>, and the required contraints. A very useful functionality is the Kronecker product method that creates a new model from multiple cgeneric models. It also works with the rgeneric, the R version of the cgeneric intended to easy try implementation of new GMRF models. The Kronecker between two cgeneric models was used in Sterrantino et. al. (2024) <doi:10.1007/s10260-025-00788-y>, and can be used to build the spatio-temporal intrinsic interaction models for what the needed constraints are automatically set, as illustrated in the vignette.

Downloads

2.9K

Last 30 days

2463rd

12.7K

Last 90 days

17.7K

Last year

Trend: -21.8% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Additional Issues

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (2)

Dependency Network

Dependencies Reverse dependencies Matrix INLAspacetime graphpcor INLAtools

Version History

updated 0.1.1 ← 0.1.0 diff Apr 3, 2026
updated 0.1.0 ← 0.0.9 diff Mar 29, 2026
new 0.0.9 Mar 10, 2026
updated 0.0.9 ← 0.0.8 diff Feb 11, 2026
updated 0.0.8 ← 0.0.7 diff Feb 1, 2026
updated 0.0.7 ← 0.0.6 diff Jan 13, 2026
updated 0.0.6 ← 0.0.5 diff Dec 18, 2025
updated 0.0.5 ← 0.0.4 diff Nov 19, 2025
updated 0.0.4 ← 0.0.3 diff Jun 22, 2025
updated 0.0.3 ← 0.0.2 diff Jun 15, 2025
updated 0.0.2 ← 0.0.1 diff Jun 3, 2025
new 0.0.1 Jun 1, 2025