.BG M
.VE $Header: /usr3/s/current/s/data/.help/RCS/probsamp,v 1.2 83/12/30 23:09:48 rab Exp $
.FN probsamp
.TL
?probsamp: Sample of Data with Specified Probability
.CS
?probsamp(x, alpha)
.PP
.AG x
vector of data.
.AG alpha
probability ( between 0 and 1 ) of picking any individual
data value in x to be in the generated sample.  If `alpha'
is not given, its user is prompted for the value.
.RT
a sample of the data vector `x'.
.SH SEE ALSO
Function `sample'.
.EX
?probsamp(mydata,.5)   # return sample of mydata
  # each value in mydata has 50% chance of appearing in sample
.KW basic*
.KW random
.KW distribution
.WR
