Learn R Programming

geoCount (version 1.150120)

mixChain: Mix Parallel Markov Chains

Description

This function mix parallel chains into one chain.

Usage

mixChain(res.m.prl)

Arguments

res.m.prl
a list with each element containing the result of posterior samples from one CPU; the elements shoul only contain the Markov chains of posterior samples (while "AccRate" is eliminated when using cutChain)

Value

A list with elements containing the mixed posterior samples.

See Also

cutChain.

Examples

Run this code
## Not run: 
# res.prl <- runMCMC.multiChain(Y, L=0, loc=loc, X=loc, 
#             MCMCinput = input, n.chn = 5)
# res.m.prl <- lapply(res.prl, cutChain, chain.ind=1:4, burnin=200, thining=20)
# res.mix <- mixChain(res.m.prl)
# ## End(Not run)

Run the code above in your browser using DataLab