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

 

Function index Version 3.0.0

apaResample.TimeSeries.WithoutReplacement(TimeSeries, nSeries, nObs)

Excel=apaResample.TimeSeries.WithoutReplacement(TimeSeries, nSeries, nObs)

Result

Resamples (shuffles) a time series without replacement, 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)

Algorithm

For each series, a random permutation of the observations is drawn and the first nObs observations are returned.

Remarks

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