I am pleasantly surprised that Nick's code had such a dramatic impact, and I wonder why it did. I had thought the number of calculations would be about the same either way. Does putting things in loops dramatically improve execution speed? Or is it some other change Nick made? I like loops because they are tidier and if you have to make a change, you only have to do it once, not 20 times. Loops are easier to debug. But if they are also speed demons the documentation could mention that. Maybe have a FAQ on tips for easy ways to speed up Stata.
-
Login or Register
- Log in with
Comment