Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: R: how to cancel the seed set previously?


From   "Carlo Lazzaro" <[email protected]>
To   <[email protected]>
Subject   st: R: how to cancel the seed set previously?
Date   Thu, 2 Jul 2009 12:33:58 +0200

Dear Rose,
just to top off Maarten's and Martin's superb advices on this topic, you can
find some stuff on pseudo-random number generating idea in:

 - Juul S. An Introduction to Stata for Health Researchers. College Station:
Stata Press, 2006: 257;

- Davidson R, MacKinnon JG. Econometric Theory and Methods. Oxford:Oxford
University Press, 2004: 18; 157-159.

Kind Regards,
Carlo
-----Messaggio originale-----
Da: [email protected]
[mailto:[email protected]] Per conto di [email protected]
Inviato: giovedì 2 luglio 2009 9.56
A: statalist
Oggetto: st: how to cancel the seed set previously?

I set seed # before the runiform() function.
For instance,
I typed,
set seed 100
g x=runinform()

my confusions are,
1.how to set the seed number propriately? I saw everyone set it large.Any
difference?
2. how to cancel the seed set previously? Maybe next time I again want to
produce uniformly distributed random variates, and set seed 100 by accident
, which may lead to the variates produced is not random.

Thank you for any replies!

Sincerely,
from Rose.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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