recompute_SBC_statistics | R Documentation |
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
)
datasets |
an object of class |
backend |
backend used to fit the results. Used to pull various defaults and other setting influencing the computation of statistics. |
thin_ranks |
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. |
ensure_num_ranks_divisor |
Potentially drop some posterior samples to ensure that this number divides the total number of SBC ranks (see Details). |
dquants |
Derived quantities to include in SBC. Use |
gen_quants |
Deprecated, use dquants instead |
An S3 object of class SBC_results
with updated $stats
and $default_diagnostics
fields.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.