Learn R Programming

EntropyMCMC (version 1.0.4)

CollectChains: Collect MCMC chains in a single object

Description

Utility function for the package EntropyMCMC.

Usage

CollectChains(s)

Arguments

s

An object of class plMCMC, such as the one returned by MCMCcopies, containing in particular an array of dimension \((n,d,nmc)\) holding the simulation of \(n\) steps of \(nmc\) parallel chains in dimension \(d\).

Value

Returns a matrix of dimension (n*nmc,d).

Details

Concatenates all simulated copies together in one matrix of dimension (n*nmc,d).