Sampling without replacement
s = samwr(sizam, numsamp, X)
integer. Size of a sample. It must be lower than or equal to the size of X.
integer. Number of samples to be extracted.
column vector. It contains the population.
matrix of size sizsam * numsamp. It contains
numsamp random samples (the columns) each of
sizam extractions without replacement from X.
Gives samples without replacement from a column vector.
samwr is based on grand for generating the random samples. Use grand("setsd", seed) to change the seed for samwr.