Please extend the resample() command so that it can be used with an mxn
matrix A too. Then B = resample(A) should construct a matrix where B
contains resampled rows from A.
This would be very useful when bootstrapping a regression model using the
paired bootstrap method (see e.g.
http://www.stanford.edu/~zhenwei/papers/bootstrap.pdf).
Secondly, add a second argument to the resample() command where one can
choose the number of resamplings that should be drawn. E.g., if the
variable has n observations, sometimes one may want to draw m>n
resamplings. This should be possible by writing e.g. x = resample(y,m),
with the default value m=n, so that x = resample(y) draws n resamples, but
one could use x = resample(y,m) with m not equal to n.
Best regards and thanks for a great software,
Andreas