Usage
acf(x, lag.max = NULL, type = c("correlation", "covariance", "partial")[1],
plot = TRUE, na.action = na.fail, demean = TRUE, drop.lag.0 = TRUE, ...)
Arguments
x
a univariate or multivariate (not ccf) numeric time series object or a numeric vector or matrix, or an "acf" object.
lag.max
maximum number of lags at which to calculate the acf. Default is 10*log10(N/m) where N is the number of observations and m the number of series.
type
character string giving the type of acf to be computed. Allowed values are "correlation" (the default), "covariance" or "partial".
plot
logical. If TRUE (the default) the acf is plotted.
na.action
function to be called to handle missing values. na.pass can be used.
demean
logical. Should the covariances be about the sample means?
drop.lag.0
logical. Should lag 0 be dropped
...
further arguments to be passed to plot.acf.