Statalist


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

st: sorting with a key


From   "Ashim Kapoor" <ashimkapoor@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: sorting with a key
Date   Fri, 12 Sep 2008 14:30:56 +0530

Hi again guys!

I wish to say 2 things. The ado file which I posted earlier is much
faster than looping manually in stata.

Also the original sortrows has some checks and balances which I
removed to clarify the main programming goal in my mind plus I only
started doing MATA yesterday.

I want to make one improvement. Sortrows allows me to say

sortrows(var*)

I want to say keysortrows(var*), key(k*)

How can I make this improvement ? Please give me a hint.

Thank you,
Ashim.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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