
Extract cross-lineage coevolutionary modules
Source:R/extract-sigma.R
extract_coevolution_modules.Rdextract_coevolution_modules() standardizes a component-specific
cross-lineage covariance block and decomposes it into coupled trait axes.
For a named coevolution kernel tier, the helper computes
R = Sigma_row^{-1/2} Gamma Sigma_col^{-1/2} from the shared covariance
returned by extract_Sigma(), then applies a singular-value decomposition.
This is a point-estimate derived-output helper, covered by the package's
validation tests, for fitted
dense-kernel coevolution models whose component-specific Gamma blocks are
already extractable with extract_Gamma(). It does not report
uncertainty, choose the biological rank, estimate rho, or calibrate null
thresholds. Use simulation, bootstrap, and kernel-separability checks before
treating the returned axes as scientific evidence.
Arguments
- fit
A fitted
gllvmTMB_multiobject.- level
Character scalar naming the fitted covariance tier.
- row_traits, col_traits
Character vectors naming the row-lineage and column-lineage traits.
- scale
Character scalar.
"shape"(default) usesGamma_shape = Lambda_row Lambda_col^T;"effect"uses the fixed-rhoGamma_effectavailable for kernels built bymake_cross_kernel().- n_modules
Optional positive integer limiting the number of returned singular axes. By default all axes are returned.
- tol
Numerical tolerance for the generalized inverse square roots of the within-lineage shared covariance blocks.