What is this about?
A
prior often feels harmless on the parameter scale β but what does it mean for the
data your model considers plausible? The
Prior Predictive Check answers exactly that: datasets are simulated from the priors alone (without any real measurements) and shown, e.g., as regression lines or densities. That way you see
before the actual fit whether your prior produces realistic or absurd worlds.
Important β upload your own predictors. Whether a prior is plausible depends on the values of your predictors: with Ξ² = 2, x = 1 and x = 100 are completely different worlds. Without an upload the tool therefore works with
default values β x ~ Normal(0, 1), i.e. z-standardised predictors (50 pseudo-observations per draw). If your predictors are in other units (age in years, income in euros, β¦), the check is then misleading. With your file (sidebar "Data upload") the tool plugs your real x values into every observation β just like
brms does in
pp_check. Your
y does not feed into the priors; it only appears as a green comparison curve.
How to proceed
1. Choose a model (left) β
likelihood family matching your outcome variable; alternatively, build the complete model in the
brms Model Builder and transfer it here with one click
2. Upload your own data β CSV with a column
y and your predictors as
x (or
x1,
x2, β¦); optionally
group for groups (
random effects). That way the check uses your real data structure instead of default values
3. Set priors β via the sidebar, optionally with "⬑ Prior Lab light" as a calculation/visualization aid (CI solver) on the side β you then enter the values you find into the sidebar yourself
4. Look at the simulated data β plausible, or already unrealistic? If the green curve of your real data lies within the range of the blue prior curves, the prior fits the order of magnitude of your data
For a more extensive version of "Prior Lab light" (more distribution types,
GLM mode for logit/log link), use the standalone
Prior Lab.
Practical extras
β A/B Comparison puts two prior sets side by side;
β Mixed Model adds random effects. A finished model from the
brms Model Builder can be transferred directly here (button "⬑ β Builder" for the reverse direction) β R code, SVG and PNG can be exported at any time.