Generates random linear surrogate data of a time series with the same second-order properties.
aaft(data, nsur)
Arguments
data: a vector of equally spaced numeric observations (time series).
nsur: the number of surrogates to generate (1 or more).
Returns
surrogates: a matrix of the nsur surrogates.
Details
The AAFT uses phase-scrambling to create a surrogate of the time series that has a similar spectrum (and hence similar second-order statistics). The AAFT is useful for testing for non-linearity in a time series, and is used by nonlintest.