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_fitobject.- ...
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()).
See also
kb_converged() for the convergence thresholds and what to do
when they fail.
Other fit methods:
augment.kb_fit(),
coef.kb_fit(),
fitted.kb_fit(),
kb_model_describe(),
kb_samples(),
kb_stancode(),
log_lik.kb_fit(),
posterior_epred.kb_fit(),
posterior_linpred.kb_fit(),
posterior_predict.kb_fit(),
prior_summary.kb_fit(),
residuals.kb_fit(),
summary.kb_fit(),
tidy.kb_fit()
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>