Learn R Programming

nlist (version 0.4.0)

collapse_chains.mcmc: Collapse Chains

Description

Collapses an MCMC object's chains into a single chain.

Usage

# S3 method for mcmc
collapse_chains(x, ...)

Value

The modified object with one chain.

Arguments

x

An object.

...

Other arguments passed to methods.

Details

As mcmc objects can only have 1 chain the object is unchanged.

See Also

Other collapse: collapse_chains.nlist(), collapse_chains.nlists()

Examples

Run this code
collapse_chains(as_mcmc(nlist(x = 2)))

Run the code above in your browser using DataLab