
Latent-factor (reduced-rank) random effect: latent(0 + trait | g, d = K)
Source: R/brms-sugar.R
latent.RdCanonical name for a reduced-rank latent-factor random effect at a
grouping g. Formerly rr(0 + trait | g, d = K) – same engine, new
name. The "rr" alias still works for backward compat but emits a
one-shot deprecation warning per session.
Details
Used inside a gllvmTMB() formula:
value ~ 0 + trait + latent(0 + trait | unit, d = 2)For the canonical decomposition
\(\boldsymbol\Sigma = \boldsymbol\Lambda \boldsymbol\Lambda^\top + \mathbf S\),
add an explicit unique() term: