Description Usage Arguments Details Value Note Author(s) References
Given a time series (time.series), an embedding dimension (m) and a time lag (timeLag), the n^{th} Takens' vector is defined as
T[n]=\{time.series[n], time.series[n+ timeLag],...time.series[n+m*timeLag]\}.
This function estimates an appropiate time lag by using the autocorrelation function.
1 2 |
time.series |
The original time series. |
method |
The method that we shall use to estimate the time lag (see the Details section). Available methods are "first.zero", "first.e.decay", "first.minimum" and "first.value". |
value |
Numeric value indicating the value that the autocorrelation function must cross in order to select the time lag. It is used only with the "first.value" method. |
lag.max |
Maximum lag at which to calculate the acf. By default, the length of the time.series is used. |
do.plot |
Logical value. If TRUE (default value), a plot of the autocorrelation function is shown. |
A basic criteria for estimating a proper time lag is based on the following reasoning: if the time lag used to build the Takens' vectors is too small, the coordinates will be too highly temporally correlated and the embedding will tend to cluster around the diagonal in the phase space. If the time lag is chosen too large, the resulting coordinates may be almost uncorrelated and the resulting embedding will be very complicated. Thus, there is a wide variety of methods for estimating an appropiate time lag based on the study of the autocorrelation function of a given time series:
Select the time lag where the autocorrelation function decays to 0 (first.zero method).
Select the time lag where the autocorrelation function decays to 1/e (first.e.decay method).
Select the time lag where the autocorrelation function reaches its first minimum (first.minimum method).
Select the time lag where the autocorrelation function decays to the value specified by the user (first.value method and value parameter).
The estimated time lag.
If the autocorrelation function does not cross the specifiged value, an error is thrown. This may be solved by increasing the lag.max or selecting a higher value to which the autocorrelation function must decay.
Constantino A. Garcia
H. Kantz and T. Schreiber: Nonlinear Time series Analysis (Cambridge university press)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.