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

RE: st: variables into a macro

From   "Wallace, John" <>
To   <>
Subject   RE: st: variables into a macro
Date   Fri, 2 Nov 2007 16:26:34 -0700

Exactly, Philip.  Thanks very much.  It seemed like too useful an idea
for there not to be an approach.


-----Original Message-----
[] On Behalf Of Philipp Rehm
Sent: Friday, November 02, 2007 4:22 PM
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

Hope that helps,

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
> late in the week, but I can't think of a way to do so.  Is this a
> 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:

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