Why GLM Mode?
GLM mode makes visible what otherwise stays invisible: how a prior you set on the model scale (logit/log) actually plays out on the response scale (probability, rate, odds ratio) β and vice versa. That's the core of good prior choice for GLMs: a prior that looks harmless on the model scale can imply completely implausible values on the response scale (examples below).
This side-by-side visualization of model and response scale for the same prior is a feature unique to Prior Lab β also available via the embedded version in the Prior Predictive Check, but not found in any other tool in this lab. Seeing the two scales side by side makes the otherwise abstract scale difference tangible before you enter the prior into brms.
The Core Problem
Priors in brms must be specified on the model scale (logit or log) β but you think in probabilities and rates. These scales are non-linear: Normal(0, 10) on the logit scale sounds vague, but pushes almost all prior mass to the extremes pβ0% and pβ100%.
The solver bridges this gap: you specify your substantive bounds on the outcome scale β the solver returns the matching prior parameters on the model scale, ready to use in brms.
The two plots visualise exactly this relationship:
Top plot β Model scale: The prior distribution as it must be entered in brms (logit or log scale). Not intuitively readable, but technically correct.
Bottom plot β Response scale: What this prior implies on the outcome scale (probability, expected value, OR/RR). This is what we actually care about β but cannot be directly specified in brms. Visual reference only.
Why exp(Ξ²) = Multiplier?
Log-link (Poisson/Gamma):
log(ΞΌ) = Ξ± + Ξ²Β·X β ΞΌ = exp(Ξ±) Β· exp(Ξ²Β·X)
Comparing two groups (X: 0 β 1):
X=0: ΞΌβ = exp(Ξ±)
X=1: ΞΌβ = exp(Ξ± + Ξ²) = exp(Ξ±) Β· exp(Ξ²)
Rate Ratio = ΞΌβ / ΞΌβ = exp(Ξ²)
A Ξ² of e.g. 0.69 means: exp(0.69) β 2 β rate doubles. Adding Ξ² on the log scale = multiplying ΞΌ by exp(Ξ²). That is why we think about the prior for Ξ² in terms of ratios, not differences.
Logit-link (Bernoulli/Binomial) β exactly the same structure, just with odds instead of rates:
logit(P) = log(P/(1βP)) = Ξ± + Ξ²Β·X
X=0: oddsβ = exp(Ξ±)
X=1: oddsβ = exp(Ξ± + Ξ²) = exp(Ξ±)
Β· exp(Ξ²)
Odds Ratio = oddsβ / oddsβ =
exp(Ξ²)
Intercept β Baseline Level
The intercept determines the baseline level when all predictors equal 0.
Logit-link: sigmoid(Ξ±) = baseline probability
"Without therapy, 10β40% of patients recover"
β Input: 0.10 to 0.40
β logit(0.10) β β2.20 | logit(0.40) β β0.41
β Solver: Normal(β1.30, 0.46) on logit scale
ΞΌ < 0, because the baseline is below 50% β
Log-link: exp(Ξ±) = baseline expected value
"Baseline: 3β15 hospital admissions per year"
β Input: 3 to 15
β log(3) β 1.10 | log(15) β 2.71
β Solver: Normal(1.90, 0.41) on log scale
ΞΌ β 1.90, because exp(1.90) β 6.7 β midpoint of 3β15 β
Slope / Ξ² β Effect per Unit of X
Logit-link β Odds Ratio (OR) = exp(Ξ²):
"Therapy might slightly reduce or strongly increase odds
β OR between 0.7 and 4.0 is plausible"
β Input: OR 0.70 to 4.0
β log(0.70) β β0.36 | log(4.0) β 1.39
β Solver: Normal(0.51, 0.44) on logit scale
ΞΌ > 0, because the prior leans slightly toward positive effects β
Log-link β Rate Ratio (RR) = exp(Ξ²):
"Treatment increases event rate by 50%β5-fold"
β Input: RR 1.5 to 5.0
β log(1.5) β 0.41 | log(5.0) β 1.61
β Solver: Normal(1.01, 0.31) on log scale
ΞΌ > 0, because the prior expects only positive effects β
Rule of Thumb for Slopes
Normal(0, 0.5) β 95%-CrI OR/RR β 0.37β2.7 (moderate)
Normal(0, 1.0) β 95%-CrI OR/RR β 0.14β7.4 (large)
Normal(0, 2.0) β 95%-CrI OR/RR β 0.02β55 (very vague)
Note on ΞΌ = 0: Only when the ratio bounds are symmetric around 1 (product = 1, e.g. 0.5 Γ 2.0 = 1), the solver necessarily returns ΞΌ = 0. This is the classic "no-effect prior". Asymmetric bounds β as in the examples above β yield ΞΌ β 0 and encode substantive expectations.