Home   >   User Resources   >   Online Help   >   apaResample.TimeSeriesMatrix.WithoutReplacement
 

 

Function index Version 3.0.0

apaResample.TimeSeriesMatrix.WithoutReplacement(TimeSeriesMatrix, nObs)

Excel=apaResample.TimeSeriesMatrix.WithoutReplacement(TimeSeriesMatrix, nObs)

Result

Resamples (shuffles) the rows of a time series matrix without replacement, preserving the cross-sectional dependence.

Syntax

TimeSeriesMatrix: time series matrix, each column a time series

nObs: number of observations to generate

Algorithm

A random permutation of the row indices is drawn and the first nObs rows of the permuted matrix are returned.

Remarks

The resampling algorithm performs “drawing without replacement”, i.e. each observation occurs at most once. nObs must therefore not exceed the number of observations.