colMeans
and sweep
for working with mcmc.list
objects. The function mcmc.list is used to represent parallel runs of the same chain, with different starting values and random seeds. colMeans.mcmc.list(x, ...)
sweep.mcmc.list(x, STATS, FUN = "-", check.margin = TRUE, ...)
mcmc.list
object
colMeans.mcmc
returns a vector with length equal to the number of mcmc chains in x
with the mean value for each chain.
sweep.mcmc.lists
returns an appropriately modified version of x
colMeans.mcmc.list
converts the mcmc list into a matrix and then runs colMeans
on itsweep.mcmc.lists
modifies the values of the chains by computing some aggregate summary statistic function (STATS
) on the entire chain and applying it to each value via FUN
(default is subtraction). See sweep
for additional examples.