# NOT RUN {
library( ratematrix )
data( centrarchidae )
## Run multiple MCMC chains.
handle.list <- lapply(1:4, function(x) ratematrixMCMC(data=centrarchidae$data
, phy=centrarchidae$phy.map, gen=10000, dir=tempdir()) )
## Read all to a list
posterior.list <- lapply(handle.list, function(x) readMCMC(handle = x, burn = 0.5))
## Merge all posteriors.
merged.four <- mergePosterior(posterior.list)
## Compute the ESS for the merged posterior:
ess <- computeESS(mcmc=merged.four, p=2)
# }
Run the code above in your browser using DataLab