autocorr {BayHap} | R Documentation |
Computes lag autocorrelations for the parameters in an MCMC sequence.
autocorr(x, lag, keep.rares.autocorr = FALSE)
x |
An object of class |
lag |
Numerical vector of lags where autocorrelation must be estimated. |
keep.rares.autocorr |
Logical TRUE or FALSE indicating whether autocorrelation for rares category must be shown or not. |
A matrix whose columns and rows contain the estimated autocorrelation functions at the specified lags and the monitored parameters, respectively.
Original version by Brian J. Smith in package Boa.
Adapted version by Raquel Iniesta riniesta@pssjd.org