Am 23.09.2019 um 21:18 schrieb Allin Cottrell:
On Mon, 23 Sep 2019, Sven Schreiber wrote:
> Am 23.09.2019 um 14:17 schrieb Sven Schreiber:
>>
>> Yes, I give up ;-)
>>
> P.S.: I still think the name 'msample' is suboptimal. The meaning of the
> initial m is not clear to me. If it refers to "matrix", I'd say it
> should also work on a series. So perhaps "subsample", or "pick",
or
> whatever.
Yes, the 'm' is supposed to suggest "matrix" -- but actually I think
that's right.
We already have "smpl n --random" for datasets, and allowing a single
series argument to <function whose name is under discussion> would be a
little strange. You couldn't get a series back, it would have to be a
vector
OK, but now that we have established we don't need a blocksize for the
no-replacement case, why not go back to 'resample'?
1st arg: as before
2nd arg: 0 to indicate no replacement
3rd arg: (new and optional) sample size
Having the 2nd arg != 0 and the 3rd arg present would be an error. Of
course, using the 3rd arg might be considered sufficient and the 2nd arg
could be left empty (null) then.
cheers
sven