Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: sort


From   James Muller <james.muller@internode.on.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: sort
Date   Tue, 21 Jun 2005 11:02:54 +1000

Need a bit more info. Do you mean different results by repeating the commands? If so it sounds like you've got repeated ID's (repeated more than twice).

How exactly are the results changing?


Luhang Wang wrote:


Hi to all,

I have some question regarding the use of sort. Would anyone tell me
some potential reasons for getting different results by running

sort id
drop if id==id[_n-1]

Thanks and best,
Luhang

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


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