Exactly, Philip. Thanks very much. It seemed like too useful an idea
for there not to be an approach.
-JW
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Philipp Rehm
Sent: Friday, November 02, 2007 4:22 PM
To: [email protected]
Subject: Re: st: variables into a macro
ds _all
di "`r(varlist)'"
But you may want to select variables into a macro, based on the patterns
of their name (or other characteristics). Again, -ds- is very helpful
here.
Hope that helps,
Philipp
Wallace, John wrote:
> Dear Statalisters
>
> I'd like to write a routine for a do-file that loads all the variable
> names in the current dataset into a macro for further manipulation
> (selection of subsets based on patterns in their names). Maybe its
just
> late in the week, but I can't think of a way to do so. Is this a
silly
> thing to do?
>
>
------------------------------------------------------------
This transmission is intended for the sole use of the individual
and entity to whom it is addressed, and may contain information
that is privileged, confidential and exempt from disclosure under
applicable law. You are hereby notified that any use,
dissemination, distribution or duplication of this transmission by
someone other than the intended addressee or its designated agent
is strictly prohibited. If you have received this transmission in
error, please notify the sender immediately by reply to this
transmission and delete it from your computer. Thank You.
Affymetrix, Inc.
*
* 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/