Bootstrap statistics for multiple column data with varies data points ?

2 ビュー (過去 30 日間)
aa
aa 2020 年 10 月 7 日
コメント済み: aa 2020 年 10 月 8 日
Hi everyone,
May someone help me here ...I have data in columns (51 columns)
y = load('Bootstrap_data.txt');
nBoot = 1000;
[bci,bmeans] = bootci(nBoot,{@mean,y},'alpha',.1,'type','per');
bmu = mean(bmeans);
... I want to apply Bootstrap statistics to each column and calcualte mean and its upper and lower bound with 95% confidence interval. I code works well for each colum but this is very laborous to pick column each time and analysis... May some one help me to automate the code and check either it is correct or not ... I placed my code here and attched the data set as well...
It is important to mentioned that few interires in the column are NaN as well.
  3 件のコメント
aa
aa 2020 年 10 月 8 日
I want to select the colum ..
aa
aa 2020 年 10 月 8 日
a=xlsread('nan');
nBoot = 1000;
for ii=1:51
ii
[bci(:,ii),bmeans(:,ii)] = bootci(nBoot,{@mean,a(:,ii)},'alpha',.1,'type','per');
bmu(ii,1) = mean(bmeans(:,ii));
end
I try with this ... but again there is a problem, when i remove the NaN values from, the data ... then the maxtrix dimension no more equal ... in one column we have 51 while in other may be 45 ... so code stop once there is no similar matrix dimension.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by