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 via centering (
scale(x, scale=FALSE)): 0 = sample mean, coefficients stay on original scale. Z-standardization (scale()) is optional.
- 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.