See the help on -levelsof-.
levelsof var1 if var2 == x, local(levels)
Also, this list is called Statalist.
I don't know why so many people call it statlist.
Nick
[email protected]
Christian Rauh
In the hope not to have overlooked something obvious in the help files
or in the statlist archives, here's my problem:
I wonder whether it is possible to store certain variable values that
come as an output of a list command into a local macro. Consider the
following simple command:
list var1 if var2==x
How can I efficiently store the resulting values of var1 in a local? Of
course, if there is a solution bypassing the list comand, I'd be happy,
too.
*
* 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/