coda.mcmc | R Documentation |
mcmc.list
object for coda usersThis wrapper function extracts parallel chains from a data frame to
create an mcmc.list
object for use with coda diagnostic tools
coda.mcmc(data, numberChains = 1, iterationColumn = NULL)
data |
Data frame containing the output of the MCMC algorithm. |
numberChains |
Number of parallel chains, default = 1. |
iterationColumn |
Column number corresponding to the iteration values,
default = |
An mcmc.list
object.
Anne Philippe, Anne.Philippe@univ-nantes.fr and
Marie-Anne Vibet, Marie-Anne.Vibet@univ-nantes.fr
mcmc
mcmc.list
data(Events) mcmcList = coda.mcmc(data = Events, numberChains = 3, iterationColumn = 1) plot(mcmcList) gelman.diag(mcmcList) # The multivariate criterion can not be evaluated when a phase # contains only one date. This induces colinearity problems. gelman.diag(mcmcList, multivariate = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.