Skip to contents

Wraps extract_ordination() for users coming from gllvm::getLoadings().

Usage

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

Arguments

fit

A gllvmTMB_multi fit.

level

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

rotate

Optional "varimax" or "promax" post-hoc rotation. Default "none" returns the engine's native lower-triangular Λ.

Value

An n_traits × d numeric matrix.

See also

extract_ordination() for the canonical interface that returns scores and loadings together.

Examples

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