Conveniently calculates statistics for mcmc.list objects.
Usage
mcmcapply(x, FUN, ...)
Arguments
x
Objects of class mcmc.list.
FUN
A function to be used in the calculations, returning a single value.
...
Other arguments passed to FUN.
Value
Returns statistic value based on FUN, using all values in all chains of the MCMC object.
encoding
UTF-8
Details
The mcmcapply returns a certain statistics based on FUN.
FUN can be missing, in this case mcmcapply is equivalent
to calling as.matrix on an 'mcmc.list' object.