Learn R Programming

dRiftDM (version 0.3.1)

mcmc_dm_to_coda_mcmc: Convert MCMC Chain Array to a coda::mcmc.list Object

Description

Converts a 3D MCMC chain array (parameters × chains × iterations) into a coda::mcmc.list object for compatibility with diagnostic and summary functions from the coda package.

Usage

mcmc_dm_to_coda_mcmc(chains)

Value

An object of class mcmc.list containing one mcmc object per chain.

Arguments

chains

a 3D numeric array with dimensions corresponding to parameters × chains × iterations. chains are typically obtained from a call to get_subset_chains().

See Also

coda::mcmc(), coda::mcmc.list()