Specifies a hierarchical (nesting) level: each group-level unit belongs to
exactly one nesting-level unit (e.g., governments within countries).
hm() carries only the effect structure — random effects
(RE = re(...), partial pooling) or fixed effects (FE = fe(...),
no pooling). Fixed effects of unit-level covariates belong in the main
formula, following the lme4/brms convention:
Arguments
- id
An
idobject:id(hmid).- RE
Random effects:
TRUE(shorthand forre(1)), anreobject, orNULL. Slope variables are main-level columns varying within the nesting units. Default when neitherREnorFEis given:re(1).- FE
Fixed effects: a
feobject (unit dummies viafe(1); unit-specific slopes viafe(1 + x); report per-unit estimates withfe(1, showFE = TRUE)). Mutually exclusive withRE.- labels
Unquoted variable name holding display labels for the nesting units (used when reporting per-unit fixed effects).
- ...
Not used; catches the removed
type =,vars =,name =,showFE =, andar =arguments (the last moved into the effects grammar:RE = re(1, ar = TRUE)) with a migration message.