diagnostic_draws: Diagnostic values for each iteration

Description Usage Arguments Examples

View source: R/diagnostic_draws.R

Description

Returns the accumulated log-posterior, the average Metropolis acceptance rate, divergent transitions, treedepth rather than terminated its evolution normally.

Usage

1
diagnostic_draws(posteriors, ...)

Arguments

posteriors

A stanreg or brms model.

...

Currently not used.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
set.seed(333)

if (require("brms", quietly = TRUE)) {
  model <- brm(mpg ~ wt * cyl * vs,
    data = mtcars,
    iter = 100, control = list(adapt_delta = 0.80),
    refresh = 0
  )
  diagnostic_draws(model)
}

## End(Not run)

bayestestR documentation built on July 26, 2021, 5:08 p.m.