Hi Ly,
I didn't suppose that you needed to cut back the depth of nesting; it
seemed that the nesting structure is intrinsic to the task.
But if it works, then okay.
The point to know is that when a segment of code is inside a loop
that gets repeated many times, it should be as time-efficient as possible.
Plus, reading/writing files is much slower than computations and
memory-read/write operations.
I'm glad that its working well for you now.
--David
At 10:23 PM 1/14/2013, you wrote:
Hi David,
Thank you for your quick and very thorough response.
Thanks to your suggestions, I did go back and found a way to speed up
the program by rewriting the 4 ado files (which in turns allow me to
cut back on the nested loops).
Thanks so so much.
--
Ly Tran
[...]
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/