Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: defining a local that contains all of the variables


From   "Dimitriy V. Masterov" <[email protected]>
To   [email protected]
Subject   st: defining a local that contains all of the variables
Date   Fri, 24 Oct 2003 15:11:21 -0500 (CDT)

Dear Statalist,

I would like to define a local that contains the names of all of the
variables in my dataset. I would like to write something like this:

local varlist: _all	or	local varlist "*"

but these commands do not work. I can perform this using

local varlist "A1-Z100"

but I would like to do for a large number of files where the variable
names are different in each dataset and they are not sorted in
alphabetical order.


Dimitriy V. Masterov

_______________________________________________________________________________
Dimitriy V. Masterov

Work:
Center for Social Program Evaluation
1155 East 60th St. Room 038
Chicago, IL 60637
Work: (773)256-6005
Fax: (773)256-6313

Home:
1312 East 53rd St., Apt.309
Chicago, IL 60615
Mobile: (773)220-2760


*
*   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