Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: how can I tell Stata to draw many random samples without replacement


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: how can I tell Stata to draw many random samples without replacement
Date   Thu, 15 Sep 2005 03:54:09 +0100 (BST)

Alejandro Delafuente wrote:

> 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

Without in any way implicating its author, might not Stephen Jenkins'
-samplepps- be able to help here? You can download it from SSC.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather
conditions.

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index