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

View source: R/core_bayes_estimate.R

mcmc_dm_to_coda_mcmcR Documentation

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)

Arguments

chains

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

Value

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

See Also

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


dRiftDM documentation built on Dec. 1, 2025, 5:08 p.m.