Description Usage Arguments Value Examples
View source: R/diag_autocorr.R
Diagnostic: Calculate the autocorrelation for each chain and parameter
1  | diag_autocorr(x, lags = NULL)
 | 
x | 
 mcmc.list object or dataframe creatd by   | 
lags | 
 integer the lag value that you want to use  | 
a data.table data frame with the autocorrelation at each lag for each chain and parameter columns lag, acf, chain, and parameter
1 2 3 4  | library(coda)
data(line)
line_acf <- diag_autocorr(line)
line_acf
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.