The data. Does not have to be a time series object.
max.lag
Maximum lag. Can be omitted. Defaults to \(\sqrt{n} + 10\) unless \(n < 60\). If the series is seasonal, this will be at least 4 seasons by default.
plot
If TRUE (default), a graph is produced and the values are rounded and listed. If FALSE, no graph is produced and the values are listed but not rounded by the script.
This is basically a wrapper for acf() provided in tseries. The error bounds are approximate white noise bounds, \(-1/n \pm 2/\sqrt{n}\); no other option is given.
References
You can find demonstrations of astsa capabilities at
FUN WITH ASTSA.
# NOT RUN {acf2(rnorm(100))
acf2(rnorm(100), 25, main='') # no titleacf2(rnorm(100), plot=FALSE)[,'ACF'] # print only ACFacf2(soi, col=2:7, lwd=4, gg=TRUE) # mother's day present# }