Skip to contents

Decomposes the marginal trait variance into contributions from each active component of the model: between-unit shared (latent_B), between-unit unique (unique_B), within-unit shared (latent_W), within-unit unique (unique_W), phylogenetic (phylo_scalar / phylo_latent), non-phylogenetic species, spatial (spatial), and Gaussian/lognormal observation residual where present. Non-Gaussian link-implicit residual shares are handled by extract_proportions().

Usage

VP(fit)

Arguments

fit

A fitted multivariate model returned by gllvmTMB().

Value

An n_traits × n_components matrix of variance shares (rows sum to 1). Columns are only those active in fit$use.

Details

Mirrors gllvm::VP() / gllvm::plotVP().

See also

extract_proportions() for the canonical per-trait variance-share decomposition with explicit B / W / phy / link-residual columns.