powered by
The acf function computes the estimated autocovariance or autocorrelation for both univariate and multivariate cases.
# S3 method for auto_corr plot(x, show.ci = TRUE, alpha = 0.05, main = NULL, ...)
An array of dimensions \(N \times S \times S\).
array
An "ACF" object from ACF.
"ACF"
ACF
A bool indicating whether to show confidence region
bool
Additional parameters
A double containing the 1-alpha level. Default is 0.95
double
Yunxiang Zhang
# Calculate the Autocorrelation m = ACF(datasets::AirPassengers) # Plot with 95% CI plot(m) # Plot with 90% CI plot(m, ci = 0.90) # Plot without 95% CI plot(m, show.ci = FALSE)
Run the code above in your browser using DataLab