I wrote a program, in which there are multiple nested loops (because
there are 7 parameters, each could receive one of 5-7 different
values).
The program runs really fast at first, but starts slowing down when
getting to around the 300th iteration. By 500th iteration, it slows
down significantly, and I could never wait until the whole thing ends
(the longest I have waited was 2 hours).
Does anybody know what could be the cause of this slowing down? "Set
memory" doesn't seem to help.
Any idea will be much appreciated.
thank you.
--
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/