GRSAMPLE(n; v; p)
forms a variate of size n
by sampling with replacement from variate v
with probabilities (or relative weights) p
; if p
is omitted, the probabilities are assumed to be equal; if v
is omitted, sampling is from a variate containing the integers 1…n
.
GRSAMPLE
Updated on December 4, 2017