poolMcmcChains: poolMcmcChains

View source: R/poolMcmcChains.R

poolMcmcChainsR Documentation

poolMcmcChains

Description

Combines a list of single or several MCMC chains into a single chain

Usage

poolMcmcChains(postList, chainIndex = 1:length(postList), start = 1, thin = 1)

Arguments

postList

list of posterior chains

chainIndex

index of chains to be included

start

index of first MCMC sample included

thin

thinning between included MCMC samples

Value

a list with combined MCMC samples

Examples

# Combine the posteriors from all chains in a Hmsc object
postList = TD$m$postList
pooledPost = poolMcmcChains(postList)


Hmsc documentation built on Aug. 11, 2022, 5:11 p.m.