Hello,
I am trying to do block reasampling to rearrange my data and not succeed to do random permutation and assugnement.
I would like to divide original time series to subsamples and then to rearange this subsamples randomly.
 
Function tsboot works only if I need to check statistic, I am interested in just rearranging the data while keeping its structure.
 
The problem is defined as follows.
1. I define llentgh of block , b.
2.Divide an original time series by b and receive k=n/b subsamles.
3. I need to generate random vector of integers from 1 to k
4 Let Z*(j) be for j=1....k be the j th row of a matrix with num of rows equal to number of blocks and number of columns equal to number of simulations.
5. Assigne to each Z*(j) the blocks according to generated random vector(each column of matrix is a different order of permutations).
 
 
 
I would appreciate any help.
 
Thank you
Yana


      
	[[alternative HTML version deleted]]

