brms Model Builder
15 Likelihoods Β· Priors Β· Distributional Models Β· McElreath-Notation Β· brms-Code
Β© Dr. Rainer DΓΌsing Β· Interactive Tools by Claude
Mathematical Model
McElreath-Notation Β· Live Preview
Likelihood & Linear Predictors
R Β· brms
Generating code…
β„Ή brms Model Builder
πŸ“  brms Intercept Parameterization
The problem with the brms default y ~ x
With the standard formula, brms internally centers predictors during estimation (intercept reparameterization). A custom prior(…, class = Intercept) then does not act on the "raw" intercept of your predictors, but on an internally shifted parameter. With uncentered predictors β€” the standard case in practice β€” this leads to extreme posterior standard errors and unintended prior specifications.

Our solution: y ~ 0 + Intercept + x by default
With explicit intercept modeling:
β€’ The prior prior(normal(60, 20), class = b, coef = Intercept) acts directly on the raw scale
β€’ The prior corresponds to the expected outcome when all predictors = 0
β€’ No internal conflict, no hidden shifts
β€’ The prior meaning is always unambiguous on the raw scale
β€’ Recommendation: Still center predictors (scale() etc.) β€” greatly improves interpretability of the intercept and stabilizes MCMC sampling

Syntax difference
brms default: prior(normal(0, 2.5), class = Intercept)
Explicit (this formula): prior(normal(0, 2.5), class = b, coef = Intercept)

Exception: Ordinal models (cumulative, categorical) β€” their threshold parameters keep class = Intercept, as brms treats them differently.