Estimate autocorrelation

acf_data(x, lag)

Arguments

x

Single chain.

lag

maximum lag. Must be an integer between 1 and 500.