The PACF function estimates the partial autocovariance or autocorrelation for both univariate time series.
PACF(x, lag.max = NULL, type = "correlation", demean = TRUE)
| x | A |
|---|---|
| lag.max | An |
| type | A |
| demean | A |
An array of dimensions \(N \times 1 \times 1\).
# Get Autocorrelation m = PACF(datasets::AirPassengers) # Get Autocovariance and do not remove trend from signal m = PACF(datasets::AirPassengers, cor = FALSE, demean = FALSE)#> Error in PACF(datasets::AirPassengers, cor = FALSE, demean = FALSE): unused argument (cor = FALSE)