apaResample.TimeSeries(TimeSeries, nSeries, nObs, ProbNeighbour)
=apaResample.TimeSeries(TimeSeries, nSeries, nObs, ProbNeighbour)Result
Resamples a time series with replacement (bootstrap), optionally as a stationary block bootstrap, generating several resampled series.
Syntax
TimeSeries: r x 1 data vector containing a time series
nSeries: number of time series to generate (determines the number of columns of the result)
nObs: number of observations to generate (determines the number of rows of the result)
ProbNeighbour: probability that the next observation drawn is the chronological neighbour of the previous one. Zero for a simple bootstrap.
Algorithm
The resampling algorithm performs “drawing with replacement”, i.e. a particular observation can occur more than once.
Remarks
ProbNeighbour can be used to preserve the autocorrelation structure of the original time series. Use the autocorrelation functions to analyze the original time series first.
