RE: st: cluster analysis with foreach

Fair point.
Brevity is not all, however. Saving to a local has the merit that it
remains available for later use, whereas r() results are ephemeral.
Nick
n.j.cox@durham.ac.uk
Martin Weiss
" If you want to do it that way, fine but
levelsof state, local(allstates)
foreach s of local allstates {
...
}
is one statement fewer."
Shortest version yet:
*************
levelsof state
foreach s in `r(levels)'{
...
}
*************
*
* 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/