Help with Bootstrap function
6 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have a single data (50 numbers) set which I just want to re-sample through Bootstrap. The problem is the bootfun part as it asks for a function, I do not want to do any sort of analysis on the data. Just resample it, the matlab help section says to use [] for the bootfun, if no function is needed. So far it isn't working.
Maybe there is afunction I could use, but I do not need one considering I just have 50 data samples and nothing to compare with.
0 件のコメント
採用された回答
bym
2011 年 6 月 26 日
you need to have 2 assignments to get the resampled data
>> r = 1 + 2.*randn(25,1);
>> [x,bootsamp]=bootstrp(25,[],r);
>> whos bootsamp
Name Size Bytes Class Attributes
bootsamp 25x25 5000 double
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!