SBC_backend_iid_draws: S3 generic to let backends signal that they produced...

View source: R/backends.R

SBC_backend_iid_drawsR Documentation

S3 generic to let backends signal that they produced independent draws.

Description

Most backends (e.g. those based on variatns of MCMC) don't produce independent draws and thus diagnostics like Rhat and ESS are important and draws may need thinning. Backends that already produce independent draws (e.g. ADVI/optimizing) can implement this method to return TRUE to signal this is the case. If this method returns TRUE, ESS and Rhat will always attain their best possible values and SBC_backend_default_thin_ranks() will return 1. The default implementation returns FALSE.

Usage

SBC_backend_iid_draws(backend)

## Default S3 method:
SBC_backend_iid_draws(backend)

Arguments

backend

to check


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