I like -levelsof- too.
This suggestion is interesting. I guess the problem is that
in practice it would bite as many users as it benefitted,
given the possibility of producing very long command lines
and/or problematic strings with double quotes or
compound double quotes.
(The -egen- function -axis()- here comes from -egenmore-
on SSC.)
Nick
[email protected]
Ulrich Kohler
This reminds me to place a wish regarding levelsof: I wish I had an
extended marco function -levelsof-, so that I could code things like
forach k in `:levelsof country' {
...
}
or
egen axis = axis(price), label(make)
graph twoway scatter axis weight, ylab(`:levelsof axis', valuelabel)
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/