Statalist


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

Re: st: Running the same do file but getting different results


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   Re: st: Running the same do file but getting different results
Date   Sat, 09 Feb 2008 17:19:06 -0500

At 03:53 PM 2/9/2008, krishanu karmakar wrote:
Respected Mr. Buis,

Thank you very much. Indeed, I have used the sort command and the
relevant variable is an id variable for individuals. Incidentally that
is "repeated" for some observations as the same individual may have
fallen ill in the reference period more than once. I think I need to
use the serial number of illness as the secondary sort variable along
with the id variable.

Thank you very much again for your kind help.

Regards

Krishanu
If you want the sort command to always produce the same sorting, you need to use the -stable- option. See -help sort-. Or, using a secondary sort variable may do the trick if that produces a totally unique ordering for each case.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: Richard.A.Williams.5@ND.Edu
WWW: http://www.nd.edu/~rwilliam

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