Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: set seed and gsample


From   "Ben Jann" <ben.jann@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: set seed and gsample
Date   Fri, 9 Mar 2007 09:22:37 +0100

Shige,
I'd really be interested in this. I tried hard to make -gsample-
seed-save so that nothing can go wrong  (I even rewrote some of
official Stata's Mata functions to make them stable). Can you show me
the exact situation in which the problem occurs?
Thanks,
ben

On 3/7/07, ʱ <shigesong@gmail.com> wrote:
Dear All,

I am trying to draw a PPS sample using the "gsample" command.  I want
to make sure I get the same sample each time I invoke the gsample
command by using the "set seed" command. However, even after I set the
random seed using "set seed" command, I still get different sample
each time. Has anybody encountered this problem? Thanks!

Best,
Shige
*
*   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/

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index