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

st: seed command with rndbin


From   "Allardice, Gwen" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: seed command with rndbin
Date   Tue, 12 Aug 2003 15:07:10 +0100

I have recently found a problem in  stata v7 . I have been using the rndbin
program extensively in some simulations I am running.

I would like to be able to replicate  my results and find that the seed
command does not seem to work; I keep getting different results.

e.g. a simple example should illustrate my problem. the following three
lines of stata will generate and show me an appropriate random number but
repeating the three commands then gives me a different number. I want it to
give me the same number. 



set seed 2
rndbin 1 0.33  6
display   xb

Can someone show me how to run the rndin command more than once and get the
same result each time. 


Dr Gwen Allardice,
Glasgow,
Scotland.

_________________________________________________________________ 
Common Services Agency Disclaimer 

The information contained in this message may be confidential or legally privileged and is intended for the addressee only.  If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. 
_________________________________________________________________ 

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