Description Usage Arguments Value References Examples
View source: R/ggs_autocorrelation.R
Calculate the autocorrelation of a single chain, for a specified amount of lags.
1 | ac(x, nLags)
|
x |
Vector with a chain of simulated values. |
nLags |
Numerical value with the maximum number of lags to take into account. |
A matrix with the autocorrelations of every chain.
Fernández-i-Marín, Xavier (2016) ggmcmc: Analysis of MCMC Samples and Bayesian Inference. Journal of Statistical Software, 70(9), 1-20. doi:10.18637/jss.v070.i09
Internal function used by ggs_autocorrelation
.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.