>What I see does not convince that either looping over observations
>or repeated application of any program is required, as his code
>exemplifies and his advice would imply... in my experience
>typically yield to -by:- alone.
Nick has written many programs dealing with spell problems, so this
may looked like one. He is correct that looping is not necessary.
But it works incrementally and easy to write/debug.
Like Nick said, -bys:- is usually better, but groups must be correctly
identified for it to work. It depends on the nature of the problem.
There is at least one more way, which is to create more variables
using string functions and work your way. This works best with Stata 10
that comes with a variety of variable string functions.
With Stata 8, macro extended functions needs to be looped over the
contents of a string variable.
Roy
_________________________________________________________________
Life on your PC is safer, easier, and more enjoyable with Windows Vista®.
http://clk.atdmt.com/MRT/go/127032870/direct/01/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/