API reference
Latte fits latent Gaussian models (LGMs). The primary way to define one is the @latte macro: it reads your model body, classifies each ~ block, and returns a model object. That object is engine-agnostic — the same definition runs through inla, tmb, or hmc_laplace, and every engine returns results through one shared accessor API.
Latent Gaussian models
Every Latte engine targets the same model class:
A Gaussian latent field
What's here
Defining models: the
@lattemacro — the primary entry point, how the macro builds the model, and what it does not yet handle.Working with results — the accessors that read latent and hyperparameter marginals off any engine's result.
Lower-level construction — building a model directly from
@hyperparamsandLatentGaussianModelwhen you need full control.
Component pages cover the individual pieces:
Observation models — the likelihood
. Gaussian approximation — the inner Gaussian fit to
. Marginalization — recovering latent-field marginals.
Hyperparameter posterior — exploring and marginalizing over
.
For worked, end-to-end models see the tutorials; for the inference methods themselves and how to tune each, see the engine pages.