Empirical ACF and PACF
This function can estimate either the autocovariance / autocorrelation for univariate time series, or the partial autocovariance / autocorrelation for univariate time series.
auto_corr(x, lag.max = NULL, pacf = FALSE, type = "correlation", demean = TRUE, robust = FALSE)
x |
A |
lag.max |
An |
pacf |
A |
type |
A |
demean |
A |
robust |
A |
lagmax
default is 10*log10(N/m) where N is the number of
observations and m is the number of time series being compared. If
lagmax
supplied is greater than the number of observations N, then one
less than the total will be taken (i.e. N - 1).
An array
of dimensions N x 1 x 1.
Yuming Zhang
m = auto_corr(datasets::AirPassengers) m = auto_corr(datasets::AirPassengers, pacf = TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.