Skip to contents

Canonical snake_case accessors in the extract_*() family for the implied trait covariance and correlation at level = "unit" or "unit_obs". getResidualCov() and getResidualCor() are accepted gllvm-compatibility spellings; each pair returns the same matrix.

Usage

extract_residual_cov(fit, level = "unit")

extract_residual_cor(fit, level = "unit")

Arguments

fit

A fitted multivariate model returned by gllvmTMB(). Admitted engine = "julia" bridge fits expose raw unit-tier loadings and scores; rotated ordinations remain gated for Julia bridge fits.

level

"unit" (between-unit) or "unit_obs" (within-unit). Deprecated aliases "B" and "W" are still accepted with a warning.

Value

An n_traits x n_traits matrix.

See also

extract_Sigma() for the unified Sigma API; getResidualCov() for the gllvm-style spellings.