Learn R Programming

nlist (version 0.4.0)

split_chains.nlists: Split Chains

Description

Splits each of an MCMC object's chains in half to double the number of chains and halve the number of iterations.

Usage

# S3 method for nlists
split_chains(x, ...)

Value

The modified object.

Arguments

x

An object.

...

Other arguments passed to methods.

See Also

Other MCMC manipulations: bind_chains(), bind_iterations(), collapse_chains(), estimates()

Examples

Run this code
nlists <- nlists(nlist(x = c(2, 9)), nlist(x = c(1, 7)))
nchains(nlists)
nchains(split_chains(nlists))

Run the code above in your browser using DataLab