I would like to perform bootstrap in Matlab. I have 100 original data points and I would like each iteration of bootstrap to choose only 57 points with replacement randomly. How do I accomplish it?
I cannot seem to find this functionality in Matlab function bootstrp.
Regards,
To choose
npoints out of a vector randomly with replacement: userandito generate the (possibly repeated) indices:To do it directly with
bootstrp: letfundenote the function you would pass tobootstrp. You just need to pick the first 57 values of each 100-value sample: