How to apply multivariate bootstrapping in Matlab?
Afficher commentaires plus anciens
I have two output matrices W0 and W1 which have the same number of rows and columns.
The rows of these matrices need to be bootstrapped simultaneously, and the means and the standard deviations
are to be computed. Currently, I am obtaining a bootstrap sample for W_0 for each row of W_0, say, row = 1:
[stat, sample] = bootstrp(1,@(x)[mean(x) std(x) ], W_0(1,:));
Then, using the indices in sample, I am computing the mean and the standard deviation of the bootstrap sample of W_1.
Is it possible to do these two steps in one step in Matlab?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Resampling Techniques dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!