acf2 {MinimumDistance} | R Documentation |
By default, this function returns the lag-10 autocorrelations of a numeric vector and omits missing values.
acf2( x, lag.max = 10, type = c("correlation", "covariance", "partial"), plot = FALSE, na.action = na.omit, demean = TRUE, ... )
x |
a numeric vector |
lag.max |
see |
type |
see |
plot |
logical, as in |
na.action |
ignored. Missing values are automattically omitted. |
demean |
logical, as in |
... |
additional arguments passed to |
x <- rnorm(100) x[5] <- NA acf2(x)