The function calculates and by defaults plots the acf and estimates the autocorrelation in the trace.
acfMCMC(mcmc, type = "LogPosterior", samples = NULL, lag.max = 40,
plot = TRUE)
object of class MCMC
"LogPosterior" or "LogLikelihood", defaults to "LogPosterior"
number of samples at the end of the trace used to calculate the acf
Maximum amount of lag to calculate acf. Default is 10*log10(N), where N i the number of observations.
logical. If TRUE (default) a plot of the acf is created