How to apply multivariate bootstrapping in Matlab?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Resampling Techniques in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!