powered by
ac(x, nLags)
ggs_autocorrelation
# Calculate the autocorrelation of a simple vector ac(cumsum(rnorm(10))/10, nLags=4)
Run the code above in your browser using DataLab