Bootstrap statistics for multiple column data with varies data points ?

2 visualizzazioni (ultimi 30 giorni)
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 Commenti
aa
aa il 8 Ott 2020
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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by