Skip to contents

Generic function to convert MCMC output to coda::mcmc or coda::mcmc.list format.

Usage

as_mcmc(x, ...)

# S3 method for class 'rjuliabugs'
as_mcmc(x, ...)

# S3 method for class 'array'
as_mcmc(x, ...)

Arguments

x

An object to convert (e.g., a rjuliabugs object or a 3D array).

...

Further arguments passed to specific methods.

Value

An object of class mcmc, mcmc.list, or a rjuliabugs object with updated params.