Skip to contents

Computes per-parameter improved Rhat and bulk / tail effective sample size by delegating to the engine's tulpa::diagnostics(), the single source of truth for convergence diagnostics in the tulpa ecosystem. Works with all backends.

Usage

# S3 method for class 'ratiod_fit'
diagnostics(fit, pars = NULL, ...)

Arguments

fit

A ratiod_fit object

pars

Character vector of parameter names (default: all).

...

Ignored.

Value

A data frame with columns: parameter, rhat, ess_bulk, ess_tail.

Details

Rhat is the improved value of Vehtari et al. (2021): the maximum of rank-normalized split-Rhat and folded split-Rhat. Split-Rhat is defined for a single chain (the chain is split in half), so single-chain fits also get a value.