Skip to contents

Returns the trait loading matrix from a fit returned by gllvmTMB(). This is a small compatibility wrapper around extract_ordination() for readers familiar with gllvm::getLoadings(). The canonical snake_case spelling in this package is extract_loadings(), which forwards here.

Usage

getLoadings(fit, level = "unit", rotate = c("none", "varimax", "promax"))

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.

rotate

Optional "varimax" or "promax" rotation after fitting. Default "none" returns the engine's native lower-triangular Lambda. For Julia bridge fits only "none" is currently routed.

Value

An n_traits × d numeric matrix.

See also

extract_ordination() for the row-and-column interface that returns scores and loadings together.

Examples

if (FALSE) { # \dontrun{
getLoadings(fit, level = "unit", rotate = "varimax")
} # }