Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: Re: st: levelsof


From   n j cox <n.j.cox@durham.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: Re: st: levelsof
Date   Fri, 21 Sep 2007 16:30:56 +0100

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
n.j.cox@durham.ac.uk

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index