Useful for example to recompute SBC ranks with a different choice of thin_ranks
or added derived quantities.
recompute_SBC_statistics(
old_results,
datasets,
backend,
thin_ranks = SBC_backend_default_thin_ranks(backend),
ensure_num_ranks_divisor = 2,
dquants = NULL,
gen_quants = NULL
)
an object of class SBC_datasets
backend used to fit the results. Used to pull various defaults and other setting influencing the computation of statistics.
how much thinning should be applied to posterior draws before computing ranks for SBC. Should be large enough to avoid any noticeable autocorrelation of the thinned draws See details below.
Potentially drop some posterior samples to ensure that this number divides the total number of SBC ranks (see Details).
Derived quantities to include in SBC. Use derived_quantities()
to construct them.
Deprecated, use dquants instead
An S3 object of class SBC_results
with updated $stats
and $default_diagnostics
fields.