Am 19.09.2019 um 16:55 schrieb Riccardo (Jack) Lucchetti:
On Thu, 19 Sep 2019, Allin Cottrell wrote:
> As for the possibility of folding the without-replacement variant into
> resample(), is the idea that without-replacement would also support
> the blocksize option? (It would be easier if it didn't!)
Unfortunately, it may do (I think: but it'd be nice if Stefano Fachin,
our bootstrap guru, would give his opinion on the matter).
His opinion and examples of use cases would certainly be welcome. But
OTOH I think you're right, it's probably good to generalize this
properly now if it is touched at all.
Actually, maybe the simple solution to introduce a new third argument
isn't so bad even if the middle argument isn't always used. One could
write something like
Xnew = resample(X, , 0)
to switch off the replacement (which would remain the default) and
simply leave the middle argument at its default (no blocks).
cheers
sven