If I understand their relation correctly, while brms::coef()
yields the posterior for a given effect in each species, accounting for both the overall/across-species effect of the variable as well as each species deviation from this overall effect, brms::ranef()
yields only the latter quantity (i.e. the magnitude/sign of each species deviation from the overall effect). For predictive purposes, you probably want brms::coef()
.
1 Like