Returns the implied trait covariance at level = "unit" or
level = "unit_obs". For a reduced-rank plus unique tier this is
\(\Sigma_X = \Lambda_X \Lambda_X^\top + \Psi_X\). getResidualCor()
returns the corresponding correlation matrix. The canonical snake_case
spellings in this package are extract_residual_cov() and
extract_residual_cor(), which forward here.
Arguments
- fit
A fitted multivariate model returned by
gllvmTMB(). Admittedengine = "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.
Details
Attaching gllvm masks both names with S3 generics. gllvmTMB registers
methods for a gllvmTMB fit, so getResidualCov(fit) and
getResidualCor(fit) still return these matrices. A fit produced by
gllvm stays with gllvm. On a gllvm fit that package's residual
covariance is a list, not this matrix.
See also
extract_Sigma() — the canonical unified API for
between-/within-/phylogenetic Sigma at any tier.
