Re: [R] Sampling

From: Thomas Lumley <>
Date: Thu, 7 Feb 2008 12:30:30 -0800 (PST)

On Thu, 7 Feb 2008, Tim Hesterberg wrote:
> Thomas Lumley wrote:
>> Now, it might be useful to add another replace=FALSE sampler to sample(),
>> such as the newish Conditional Poisson Sampler based on the work of
>> S.X.Chen. This does give correct marginal probabilities of inclusion, and
>> the pairwise joint probabilities are not too hard to compute.
> That could be interesting. The pairwise joint probabilities are
> important in some applications. Are all the pairwise joint
> probabilities nonzero (when size*prob allows that)?


> Note that any algorithm for sampling without replacement can be
> extended to sampling with minimal replacement, by first drawing
> observations using the integer part of (size*prob), then reducing size
> and adjusting prob prior to random drawing.

Certainly -- the difficult part is sampling without replacement.


Thomas Lumley			Assoc. Professor, Biostatistics	University of Washington, Seattle

______________________________________________ mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 07 Feb 2008 - 20:33:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 07 Feb 2008 - 21:30:13 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive