Statalist The Stata Listserver


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

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


From   "Svend Juul" <[email protected]>
To   <[email protected]>
Subject   Re: st: Re: st: Sample question -- can't replicate my results from my laptop to desktop eventhough I set seed
Date   Fri, 23 Mar 2007 14:06:42 +0100

Anna has a problem:

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

My problems are:
-the data was read in and then no further sorted. 
-don't have the original computer that I did the work on 

Here's the code for reading in:
insheet using "$lga\list of school_kaduna_with_construction.csv", clear

--------------------------------------------------------------------

I have no suggestions other than identifying the observations sampled
by computer 1 and manually adding the information to the dataset at
computer 2. 

Maybe computer 1 used a different Stata version than computer 2; 
I don't know if that could affect the result. Also, although you
claim that you did not sort the data, be aware that some commands,
e.g. -codebook,compact-, involve sorting.

Good luck,
Svend
__________________________________________

Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone: +45 8942 6090
Home:  +45 8693 7796
Email: [email protected]
__________________________________________ 

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