mixChain: Mix Parallel Markov Chains

Description Usage Arguments Value Author(s) See Also Examples

Description

This function mix parallel chains into one chain.

Usage

1
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.

Author(s)

Liang Jing ljing918@gmail.com

See Also

cutChain.

Examples

1
2
3
4
5
6
7
## 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)

geoCount documentation built on May 2, 2019, 12:38 a.m.

Related to mixChain in geoCount...