Summarise prior predictive draws to check basic support, scale and shape, and (optionally) how simple statistics of the observed data compare with the prior-predictive distribution. Returns an object with a concise verdict.
prior_pp_diagnostics(
object,
level = 0.95,
support = NULL,
lower = NULL,
upper = NULL,
trials = NULL,
plausible_lower = NULL,
plausible_upper = NULL,
include_observed = TRUE,
seed = NULL
)An object of class qbrms_prior_diagnostics.
A qbrms prior object: qbrms_prior_fit, qbrms_prior_only, or a qbrms_fit
that contains prior_samples.
Credible level for central intervals (default 0.95). Reserved.
Optional override of the implied support: one of "real",
"positive", "proportion", or "bounded". If NULL, an attempt is made
to infer from the family.
Optional numeric bounds used when support = "bounded".
If support = "proportion", the default is c(0, 1).
Optional integer vector for binomial data (bounds helper).
Optional numeric bounds defining a user-declared
“plausible range” for the outcome on the response scale. When both are supplied,
the function reports the fraction of prior-predictive mass that falls in
[plausible_lower, plausible_upper] and incorporates this into the verdict.
Logical; if TRUE and the object contains data,
the report compares simple statistics of y to their prior-predictive
reference distributions.
Optional seed for reproducibility.