Statalist


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

st: Storing the output of a list command in a local macro


From   Christian Rauh <[email protected]>
To   [email protected]
Subject   st: Storing the output of a list command in a local macro
Date   Tue, 05 Feb 2008 21:57:53 +0100

Hi,

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.

Thank you very much in advance,

Chris


*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index