1. Home
  2. GRSAMPLE

GRSAMPLE

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.

Updated on December 4, 2017

Was this article helpful?