Returns latent scores from a fit returned by gllvmTMB(). This is a small
compatibility wrapper around extract_ordination() for readers familiar
with gllvm::getLV().
Usage
getLV(fit, level = "unit", rotate = c("none", "varimax", "promax"))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.- 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
A matrix with one row per unit (level = "unit") or one row per
within-unit observation (level = "unit_obs"), and one column per
latent factor.
See also
extract_ordination() for scores and loadings together.
