Guillermo Cruces
> I'm picking up a point from the very interesting discussion
"Structure
> for making line by line changes?". Scott Merryman suggested using
> rowsort, a command I didn't know. It looks very interesting, though
as
> the help file states "rowsort loops over observations and may be
> relatively slow.", so it is still looping over observations...
Yes indeed.
This thread started with Daniel Sabath being told by
various people that looping over observations was hardly
ever necessary.
As it turns out, his example is one in which looping
over observations is at the heart of _one_ solution.
Another limitation of -rowsort- is its restriction
to integers.
On the whole, I prefer to use -reshape- for this
kind of problem.
Nick
[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/