Skip to contents

Uniform bars indicate calibration; a U shape means the posterior is too narrow (overconfident); an inverted-U means it is too wide.

Usage

plot_sbc(sbc_result, param = 1L, bins = 20L)

Arguments

sbc_result

An nsbi_sbc object from sbc().

param

Which parameter to plot: an index (default 1), or a parameter name when sbc() was run against a fit with named parameters (see prior_uniform()/prior_normal()). The title uses that parameter's name when there is one, rendered as a plotmath symbol if the name parses as R syntax.

bins

Number of histogram bins.

Value

A ggplot object (also drawn as a side effect), invisibly.