Skip to contents

One-row summary of a model fit with convergence diagnostics.

Usage

# S3 method for class 'kb_fit'
glance(x, ..., rhat = 1.01, ess = 100, max_perc_divergent = 0.2)

Arguments

x

A kb_fit object.

...

These dots are for future extensions and must be empty.

rhat

A number of at least 1 giving the maximum acceptable Rhat.

ess

A number giving the minimum acceptable bulk and tail effective sample size per chain.

max_perc_divergent

A number giving the maximum acceptable percentage of saved draws that ended in a divergent transition.

Value

A one-row tibble with n (the number of observations), K (the number of terms tidy() reports, excluding the per-level group effects), nchains, niters, nthin, the worst ess_bulk, ess_tail, and rhat across parameters, perc_divergent (the percentage of saved draws that ended in a divergent transition), and converged (from kb_converged()).

Examples

glance(fit_weight_sim_nereo)
#> # A tibble: 1 × 10
#>       n     K nchains niters nthin ess_bulk ess_tail  rhat perc_divergent
#>   <int> <int>   <int>  <dbl> <int>    <dbl>    <dbl> <dbl>          <dbl>
#> 1   660     7       3    500     4     733.     589.  1.00              0
#> # ℹ 1 more variable: converged <lgl>