Skip to contents

A lightweight convergence diagnostic tailored to the multi engine (analogous to sdmTMB::sanity() for single-response fits). Prints (and returns invisibly) a structured list of pass / warn status flags covering: optimiser convergence, max gradient component, Hessian definiteness, parameter SEs, and identifiability of the latent() loadings.

Usage

sanity_multi(object, gradient_thresh = 0.01, se_thresh = 100)

Arguments

object

A gllvmTMB_multi fit.

gradient_thresh

Maximum allowed absolute gradient component. Default 0.01.

se_thresh

Threshold above which a parameter SE is flagged as suspiciously large. Default 100.

Value

Invisibly a list of diagnostic results.