coda_wrapper {DBR}R Documentation

Utility function to call MCMC diagnostic functions in the coda package

Description

Utility function to call MCMC diagnostic functions in the coda package

Usage

coda_wrapper(dbr_obj, coda_function, ...)

Arguments

dbr_obj

An object of class dbr, typically the output of the function dbr.

coda_function

A function in the coda package, with first argument being an mcmc object.

...

Arguments to be passed to coda_function.

Value

The output of coda_function.

Author(s)

Mansour T.A. Sharabiani, Alireza S. Mahani

Examples

library("DBR")
library("coda")
data("pain")
est <- dbr(
  interference ~ severity + age
  , pain
  , control = dbr.control(
    nsmp = 50
    , nburnin = 25
  )
)
coda_wrapper(est, autocorr, lag = c(0, 5))

[Package DBR version 1.4.1 Index]