This question is related to my earlier post: http://www.stata.com/statalist/archive/2012-07/msg00732.html . I had checked the source code for -rowsort-, -rowranks-, as was
suggested in the response, but to my understanding, I would need to
write a new program for every function where I want a multiple
variable return feature.
On the other hand, there is an extensive list of functions already
available for -egen- / -egenmore-, and it might be just nice to have
an -egenmult- program described above that can handle any "generic"
functions already available for -egen-.
Would it be possible to offer suggestions on how to achieve the
above, i.e. how can one program the above