
Check whether link_residual = "auto" is coherent for this fit
Source: R/check-auto-residual.R
check_auto_residual.RdInspects the fit's per-row family vector and flags two configurations
that make the link_residual = "auto" path incoherent: within-trait
family mixing (errors) and ordinal-probit traits (warns; the latent
residual is already standardised at 1, so adding 1 again over-counts).
Arguments
- fit
A fit returned by
gllvmTMB().
Value
Invisibly, a list with components status (one of "ok",
"warn", or "err" – though the "err" path is unreachable
from a successful return because cli::cli_abort halts) and
messages (a character vector of human-readable findings; empty
when status = "ok").
Side effects
"err"path:cli::cli_abortis fired and the function does not return."warn"path:cli::cli_warnis fired before the function returns the list invisibly."ok"path: silent.