The acf function computes the estimated autocovariance or autocorrelation for both univariate and multivariate cases.
.acf(x, lagmax = 0L, cor = TRUE, demean = TRUE)A matrix with dimensions \(N \times S\) or N observations and S processes
A integer
A bool indicating whether the correlation
(TRUE) or covariance (FALSE) should be computed.
A bool indicating whether the data should be detrended
(TRUE) or not (FALSE)