[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Multiple commands under "By varlist"? (A final comment)
I recoded my simulation exercises ...
Initially I was using -while- loops within which there 3 lines and each line
was checking all observations of the dataset. This was clearly inefficient.
Now I adopted two variations: (1) the -forval- approach as Nick pointed out
and (2) -while- loop but cleverly jumping through groups/iterations as
Now my simulations are atleast 12 times faster...
It is heartening to see that simulations, which used to take 8 hours or
more, are now being accomplished in about 40 minutes.
Thanks Nick and Michael.
I am learning new things everyday.
* For searches and help try: