| auto_corr {simts} | R Documentation | 
Empirical ACF and PACF
Description
This function can estimate either the autocovariance / autocorrelation for univariate time series, or the partial autocovariance / autocorrelation for univariate time series.
Usage
auto_corr(
  x,
  lag.max = NULL,
  pacf = FALSE,
  type = "correlation",
  demean = TRUE,
  robust = FALSE
)
Arguments
x | 
 A   | 
lag.max | 
 An   | 
pacf | 
 A   | 
type | 
 A   | 
demean | 
 A   | 
robust | 
 A   | 
Details
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).
Value
An array of dimensions N \times 1 \times 1.
Author(s)
Yuming Zhang
Examples
m = auto_corr(datasets::AirPassengers)
m = auto_corr(datasets::AirPassengers, pacf = TRUE)