How does bysort actually work? How does it know that a data is *already* sorted by a particular variable or not? I searched for the source code and couldn't find it. Even set trace on and running a command with bysort doesn't give much that's meaningful in terms of this specific question. I believe that this strategy being used in bysort could be particularly useful for us as programmers... perhaps there's a macro being stored somewhere that identifies the level of sort?
-
Login or Register
- Log in with
Comment