Examples & Tutorials

Explore how to use INLA through real-world, reproducible examples.

About these examples

This page curates practical INLA examples you can reuse and adapt. Each example focuses on a concrete task — from data preparation and model specification to interpretation and visualization — so you can move quickly from concept to results. We aim to showcase both foundational workflows and advanced techniques across domains such as spatial statistics, survival analysis, and joint models. Where relevant, you will find input data, code, and discussion of modeling choices, including priors and diagnostics, to help you understand why things work, not just how.

We’re expanding this gallery with more scenarios and datasets. In the meantime, the examples below represent the structure and depth you can expect. If you have a use case you’d like to see covered, you can suggest it or contribute using the template.

Real-world Examples

More examples coming soon

Bayesian Spatial Modeling of School Disparities in Brunei Darussalam

Hierarchical spatial Poisson model highlighting school access gaps across Brunei using INLA and map-based diagnostics.

Topic: Spatial · Level: Advanced
Open example

Joint Models for Longitudinal and Spatial Event-Time Data

End-to-end workflow using INLA for linked longitudinal and event-time outcomes with spatial structure.

Topic: Spatial · Level: Advanced
Open example

Non-stationary Spatial Model for Dengue in Brazil: A Hands-On Guide

Spatial disease mapping with a Besag (ICAR) prior on a microregion lattice, including workflow notes.

Topic: Spatial · Level: Intermediate
Open example

Bivariate meta-analysis of sensitivity and specificity

Fitting a bivariate meta-analytic model; code and rationale for priors and inference.

Topic: Meta-analysis · Level: Intermediate
Open example

Salamander mating data

Modeling count/outcome data with INLA; step-by-step from data to posterior summaries.

Topic: GLMM · Level: Beginner
Open example

Want a specific example?

Suggest one via our Support & Issues page, or use the example template to draft and share your use case.

← Back to Home