Random draw with replacement in pairs.
    4 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hi all,
I am working a non-parametric residual boostrap.
I have estimated my two data generating proceses, and thus have two vectors of disturbance terms.
From these two I need to draw (in pairs) with replacement.
Anyone who can help me?
0 件のコメント
採用された回答
  the cyclist
      
      
 2013 年 8 月 18 日
        
      編集済み: the cyclist
      
      
 2013 年 8 月 18 日
  
      Here's one possible way.
V1 and V2 represent your original data vectors.
N = 50;
NPAIRS = 20;
V1 = rand(N,1);
V2 = rand(N,1);
pairIndex = randi(N,[NPAIRS 1]);
pairArray = [V1(pairIndex), V2(pairIndex)]
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Data Distribution Plots についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

