Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: Re: st: Debugging estimation changes

From   Clyde B Schechter <>
To   "" <>
Subject   Re: Re: st: Debugging estimation changes
Date   Sat, 23 Jun 2012 14:23:38 +0000


If there is no sampling going on in your code (even hidden within ado files that others wrote) another possible source of indeterminacy of results is -sort-.

If you -sort- your data on a varlist that does not uniquely identify the observations, the resulting sort order is indeterminate and Stata does not guarantee to produce the same results each time.  If anything from that point on depends on the sort order of the data, you will likely get different results with re-runs.

If this is the problem, you should change any -sort- statements so that either you include enough variables in the varlist to uniquely determine the sort order, or use the -,stable- option.  With that option, Stata will preserve the original order of the data within the -varlist- groups.

Hope this helps.

Clyde Schechter
Dept. of Family & Social Medicine
Albert Einstein College of Medicine
Bronx, NY, USA

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index