Re: [R] random sampling with levels and with replacement

From: Daniel Malter <>
Date: Fri, 08 Apr 2011 01:08:58 -0700 (PDT)

If you want perfect equality, split the data in good and bad and sample from the two samples individually.

On average, however, random sampling from the entire data will reproduce the proportion of good and bad in the data.


View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 08 Apr 2011 - 08:11:17 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 Fri 08 Apr 2011 - 11:00:28 GMT.

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

list of date sections of archive