Description Usage Arguments Details Value Examples
This function computes autocorrelations for various lags of a time series.
1 |
series |
a time series object |
lags |
a multiplier for the lag. For example, use lag=12 for monthly data. |
maxlag |
maximum number of lags to compute |
ndiff |
number of regular differences to take before finding the ACF |
sdiff |
number of seasonal differences (with seasonal period specified by lags) |
This is is a wrapper for the acf function which allows for specifying regular (ndiff) and seasonal (sdiff) differences. The lags parameter specifies the seasonal lag and adjusts the default lags in the returned acf object to go 1, 2, ..., rather than showing fractional lags (for example, 1/12, 2/12, ... for monthly data). The lag 0 autocorrelation is set to NA (rather than 1) so that it won;t show when acf is plotted.
An object of class "acf"
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.