apaResample.TimeSeriesMatrix(TimeSeriesMatrix, nObs, ProbNeighbour)
=apaResample.TimeSeriesMatrix(TimeSeriesMatrix, nObs, ProbNeighbour)Result
Resamples the rows of a time series matrix with replacement (bootstrap), optionally as a stationary block bootstrap, i.e. preserving the dependency structure of multivariate data.
Syntax
TimeSeriesMatrix: r x c time series matrix, each column containing a time series
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.
