Skip to contents

Posterior summaries from the skew-normal marginals, together with diagnostics of each stage of the approximation. A parameter named for its scale (log_sigma, logit_p, atanh_rho) is summarised on its natural scale, as sigma, p or rho, and the others on the scale of logpost (see the section on natural-scale summaries in inla_vanilla()). A line under the table says which rows were mapped. The diagnostics always refer to the scale of logpost, where the approximation is made, and name the parameters as init does.

Usage

# S3 method for class 'inla_vanilla'
summary(object, probs = c(0.025, 0.5, 0.975), transform = TRUE, ...)

Arguments

object

An object of class inla_vanilla.

probs

Probabilities for the reported quantiles.

transform

Logical. Summarise the transformed parameters on their natural scale? Default TRUE. FALSE gives every parameter on the scale of logpost, whatever the fit was asked for.

...

Unused.

Value

An object of class summary.inla_vanilla: a list with the summary table table, the transforms behind its natural-scale rows transform (NULL when there are none), the log marginal likelihood logml (and its Laplace part logml_laplace), the per-parameter diagnostics diagnostics, and details of the optimiser, the VB correction, the number of calls and the timing.

Details

Printed, the summary gives the fit first (the log marginal likelihood and whether the fit converged, the parts of the log marginal likelihood, and the calls and time each stage took), then the posterior marginals, then the diagnostics. Both tables number the parameters, and the posterior marginals give each one to three significant figures of its posterior SD, with the decimal points lined up.

Most of the checks are those of INLAvaan's diagnostics(), and diagnostics() returns them under the same names, two of them under the names INLAvaan will use from its version 0.4.0 (hess_cond_cor, and unscanned_mass for its scan_end_mass). Jamil and Rue (2026) use the VB shift and NMAD as fit diagnostics (Sections 3.1 and 4.4), and the gap between the skew-normal and VB means as an internal check (Section 5.1). The mode shift, the Hessian condition number and the unscanned mass come from INLAvaan's diagnostics(), not from the paper. grad_gap, vb_step_sigma, tails and ridge_bend are inlavanilla's own.

A posterior SD here is the Laplace SD at the mode, \(\sqrt{\Sigma_{jj}}\), as in INLAvaan's diagnostics(); it is not the SD column of the table, which is the skew-normal's. The diagnostics, with the level at which each is flagged where it is, are:

  • Mode. mode_shift_sigma, the Newton step at the mode in posterior SDs: how far one step of Newton's method would still move each parameter. It is flagged above 0.1, whatever the return code of stats::nlminb(), whose message is then shown: without a gradient nlminb() can report failure at an accurate mode, and success short of one. With the VB check below, it is what makes the fit converged.

  • Gradient. grad_gap, how far a supplied grad is from logpost at the mode: the larger of the difference in slope per conditional posterior SD and half the relative difference in curvature, so about how far it moves the mode in SDs and the relative error it makes in an SD. It is flagged above 0.1, and is NA without grad. It costs no calls without hess, and about 2m logpost calls with it (see "Gradients and Hessians" in inla_vanilla()). With hess, the curvature is that of hess. A wrong gradient mostly harms the log marginal likelihood and the covariance, since the scans use logpost itself.

  • Hessian. hess_cond_cor, the condition number of the Hessian at the mode with each parameter in posterior-SD units (the eigenvalue ratio of the posterior correlation matrix). It is flagged above \(10^8\): some combination of the parameters is then weakly identified. Its line is shown when there is more than one parameter.

  • VB correction. vb_shift_sigma, the shift of each mean from the mode in posterior SDs (vb_shift is the same shift on the scale of logpost). The VB correction is the shift of the Laplace Gaussian that minimises its Kullback-Leibler divergence from the posterior, and a large shift is a sign of a posterior far from that Gaussian (Jamil & Rue, 2026, Section 3.1). It is flagged above 1 SD. kld, the Kullback-Leibler divergence between each Laplace Gaussian marginal and its VB-shifted copy, is vb_shift_sigma^2 / 2, as in INLAvaan; it is not flagged. When the fixed-point iteration hands over to the fallback optimiser, the VB line says so, but, as in INLAvaan, that is not flagged: it is a route of the solver, not a sign of a poor approximation. Where the solver lands is checked, as the mode is: vb_step_sigma is the step still to go at the VB mean, in posterior SDs (the fixed-point step there, which is the Newton step of the VB stationarity condition; see diagnostics()). It is flagged above 0.1, the level of the mode check, as a correction that did not settle. That check is inlavanilla's own. So is the check of a one-step correction (vb_lhat, vb_j0 and vb_j1 in diagnostics()): a second sweep at the step tests that the map the step iterates is a contraction. Where it is not, the posterior is far from Gaussian along the step, the VB equation is solved instead, and the check is flagged here and by a warning of its own, with the parameter the one step moved furthest. The line also gives the step still to go where the solve stopped, which is not flagged.

  • Skew-normal fits. nmad, the largest gap between the fitted and the scanned density, relative to its peak (Jamil & Rue, 2026, Section 4.4), flagged above 0.1. alpha is the shape of the fitted skew-normal marginal, on the unconstrained scale: zero is a Gaussian marginal, and the sign gives the direction of the skew. It describes the marginal rather than checking it, so it is not in the printed table: it is in summary(fit)$diagnostics and diagnostics(), and fit$sn holds it with the other skew-normal parameters.

  • Volume correction. gamma1, the slope added to the scanned log-heights, per posterior SD along the scan, for the changing volume of the other parameters (Jamil & Rue, 2026, Corollary 3.3). It is in summary(fit)$diagnostics and in the verbose output of the fit, not in the printed table, and it is not flagged.

  • Unscanned mass. unscanned_mass, the mass each fitted skew-normal puts outside the scanned window (4 posterior SDs either side of the mode), where the marginal is extrapolated, as INLAvaan's diagnostics() reports it. A Gaussian marginal gives \(2\Phi(-4) = 6.3 \times 10^{-5}\); the larger it is, the more of the marginal is extrapolated. It is flagged above 0.05.

  • Tails. tails is FALSE (and flagged) when the density at an end of the scan is still over 5% of its peak: the Laplace SD badly understates a heavy tail there, and the skew-normal extrapolates it.

  • Ridge bend. Each parameter is scanned along the conditional mode path (CMP) of the Laplace Gaussian (Jamil & Rue, 2026, Lemma 3.1), a straight line that is a first-order approximation to a possibly curved ridge of high posterior density (Section 3.2.1). ridge_bend is the log-density, in nats, that the straight scan misses at \(\pm 2\) posterior SDs: the gain from one Newton step towards the conditional mode of the other parameters. A large value means the ridge bends away from the CMP, as it does for a regression coefficient when the noise scale is poorly determined at small n, and the marginal comes out too narrow. For a normal mean with an unknown SD, a ridge bend \(b\) makes the marginal SD too small by \(1 - \sqrt{1 - 3b/4}\), about \(3b/8\). In other models this is a rough guide: on test models it was mostly within a factor of 1.5 of the true shortfall, above it in logistic and Poisson regressions and below it in a nonlinear regression. ridge_bend is flagged above 0.25, a shortfall of 10% by that formula (see the Accuracy section of inla_vanilla()). Without grad, a value below 0.1 is the gain along the direction in which the ridge bends, not the full one, so it can be a little low.

  • Mean gap. mean_gap, the gap between the skew-normal mean and the VB-corrected mean, in posterior SDs. Both recover the leading, \(O(n^{-1})\) shift from the mode to the posterior mean, so they agree to \(O(n^{-2})\) (Jamil & Rue, 2026, Proposition 3.4). A gap signals that the higher-order terms of that expansion about the mode matter, or numerical error (Section 5.1). A gap above 0.1 SDs is flagged: the posterior is far from Gaussian along that parameter, and either approximation may be off.

Every check flagged here but the ridge bend and the mean gap also raises one warning at the end of the fit, of class inlavanilla_diagnostics_warning, at the same level. The levels of the mode shift, NMAD, unscanned mass, VB shift and Hessian condition number are those of INLAvaan's fit-time warning; the VB settling and heavy-tails checks are inlavanilla's own, as are the ridge bend and mean gap flags. Every level is a package default, chosen so that a healthy fit stays silent, and not a calibrated cut-off: a tripped check is a prompt to look again, and silence is not a certificate of accuracy. In the simulations of Jamil and Rue (2026, Section 4.4) the VB shift and NMAD track the loss of accuracy, and the paper reports a calibration of the expected error against them in its Supplementary Material.

The table gives each value to two significant figures, as a tibble prints numbers, with the flagged values in red where the console shows colour. The status lines list every flagged parameter, worst first, with its value (the heavy-tails line, a yes/no check, lists names only, in parameter order); the warning lists at most three, as INLAvaan's does. With silent = TRUE the warning is only recorded in fit$warnings.

Printing the fit and its summary both open with a headline: the log marginal likelihood, and whether the fit converged, with the iterations of stats::nlminb() and the time the whole fit took. Converged means that the computation reached its solution: both the mode check and the VB check pass, so no further step at the mode or at the VB mean would move a parameter by more than 0.1 posterior SDs. It says nothing of how well the approximation fits the posterior, which the other checks judge. A flagged one-step check is one of those: the solve that follows it stops at a cap on its sweeps, and where it stops does not count against convergence. With vb_correction = "full" and no gradient a strongly skewed posterior can read "Not converged: VB did not settle": the VB mean from logpost values alone is then approximate, and supplying grad is the fix. Printing the fit ends with a line for its warnings and one counting the checks flagged here, each shown only when there are any. vignette("diagnostics", package = "inlavanilla") explains every check with examples.

With vb_correction = "none" there is no VB mean: the VB columns of summary(fit)$diagnostics are NA, as INLAvaan's diagnostics() leaves them, and are left out of the table. With marginals = "gaussian" there are no scans, so the scan columns are NA and only the VB shift is shown.

References

Jamil, H., & Rue, H. (2026). Approximate Bayesian inference for structural equation models using integrated nested Laplace approximations (arXiv:2603.25690 [stat.ME]). arXiv. https://doi.org/10.48550/arXiv.2603.25690

See also

diagnostics() for the diagnostics as numbers, under INLAvaan's names, and plot.inla_vanilla() with type = "sn_fit" for the skew-normal fits.