Bootstrap statistics for multiple column data with varies data points ?

2 vues (au cours des 30 derniers jours)
aa
aa le 7 Oct 2020
Commenté : aa le 8 Oct 2020
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 commentaires
aa
aa le 8 Oct 2020
I want to select the colum ..
aa
aa le 8 Oct 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by