plot_rank_hist: Plot rank histogram of an SBC results.

View source: R/plot.R

plot_rank_histR Documentation

Plot rank histogram of an SBC results.

Description

The expected uniform distribution and an approximate confidence interval is also shown. The confidence interval cannot be taken too seriously as it is derived assuming the bins are independent (which they are not). The plot_ecdf() and plot_ecdf_diff() plots provide better confidence interval but are somewhat less interpretable. See vignette("rank_visualizations") for more details.

Usage

plot_rank_hist(
  x,
  variables = NULL,
  bins = NULL,
  prob = 0.95,
  ...,
  parameters = NULL
)

Arguments

x

Object supporting the plotting method.

variables

Names of variables to show

bins

number of bins to be used in the histogram, if left unspecified, it is determined by guess_rank_hist_bins().

prob

The width of the approximate confidence interval shown.

Details

By default the support is for SBC_results objects and data frames in the same format as the ⁠$stats⁠ element of SBC_results.


hyunjimoon/SBC documentation built on March 15, 2024, 3:18 a.m.