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 |
coda_function |
A function in the coda package, with first argument being an |
... |
Arguments to be passed to |
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]