Dear statalisters, I have a probability distribution of a random variable with
only two values [-1,1] each with the same density [0.5]. I would like to draw N
number of random samples without replacement from my original sample S, such
that each of these new samples keeps the existing balance of values only with
different orderings. To illustrate the point:
S rs1 rs2 rs3
1 -1 -1 1
-1 -1 1 -1
-1 1 -1 -1
1 1 1 1
Any thoughts on how to achieve this would be highly appreciated. Thanks.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/