Workflow
- 1 · Choose model — Likelihood in the dropdown above
- 2 · Open Prior Lab — explore distributions, find μ/σ
- 3 · Set priors — preset as starting point, then adjust
- 4 · Run simulation → traffic light green?
- 5 · Upload data → pp_check with real x values
- 6 · Copy brms code → use directly in R
What do the plots show?
- Regression curves — Prior uncertainty over the linear predictor; each line = one prior draw
- Outcome KDE — Which y values does the prior allow? Should roughly cover the range of real data
- Marginal KDEs (α, β, σ) — Directly which parameter values the prior permits
- KDE = smoothed density estimate; may go slightly below 0 for σ/τ (edge effect) — the draws themselves are always > 0
Multiple predictors & polynomials
- Each regression curve varies one predictor — all others are held at 0
- x = 0 should be a meaningful reference value: easiest to ensure via z-standardization (0 = mean, ±1 = one SD)
- With raw scales (e.g., age in years): set μ ± and σ max in the scale field to the real value range — the x-axis adjusts automatically
- Polynomials: degree dropdown per predictor → I(x²), I(x³) are automatically added as separate β terms with separate priors. The regression curve shows the combined curve β₁·x + β₂·x² + …
Mixed Models (LMM)
- ICC = τ₀²/(τ₀²+σ²) — proportion of variance due to group differences
- ρ = correlation intercept–slope, from LKJ prior
⬡ → Builder: Transfers all priors directly to the brms Model Builder — no copy-paste, no reworking. Reverse: click ⬡ → PP-Check in the Builder. Polynomial terms are fully transferred.