split_chains.nlists: Split Chains

View source: R/split-chains.R

split_chains.nlistsR Documentation

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 class 'nlists'
split_chains(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

The modified object.

See Also

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

Examples

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

nlist documentation built on June 8, 2025, 9:41 p.m.