Statalist The Stata Listserver


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

st: Sample question -- can't replicate my results from my laptop to desktop eventhough I set seed


From   Anna Gueorguieva <[email protected]>
To   [email protected]
Subject   st: Sample question -- can't replicate my results from my laptop to desktop eventhough I set seed
Date   Wed, 21 Mar 2007 13:18:36 -0700 (PDT)

Dear All,
Apologies if this is asked before -- I read through 10 pages of sampe related questions and couldn't find it. 

I drew a sample on my laptop using the following commands:

set seed  123456789
preserve
keep if iconst==1  /*sampling only construction sites*/
sample 30, count

I run my code on my desktop and I am getting different sites selected.

Any advice how to replicate it?
Thank you in advance.
Sincerely,
Anna


 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
*
*   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