The rationale for this plot and its interpretation is explained in Mike Betancourt's Towards A Principled Bayesian Workflow.
plot_contraction(
x,
prior_sd,
variables = NULL,
scale = "sd",
alpha = 0.8,
parameters = NULL
)
object containing results (a data.frame or SBC_results()
object).
a named vector of prior standard deviations for your variables.
Either pass in analytically obtained values or use calculate_prior_sd()
to get an empirical estimate from
an SBC_datasets
object.
variables to show in the plot or NULL
to show all
must correspond a field already computed in the results (most likely "mean"
and "median"
).
which scale of variability you want to see - either "sd"
for standard deviation
or "var"
for variance.
the alpha for the points
DEPRECATED, use variables
instead.
a ggplot2 plot object