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

Re: st: Can I name a list of variables?

From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: Can I name a list of variables?
Date   Fri, 01 Jul 2005 16:56:36 +0100

At 16:04 01/07/2005, anne marie golla wrote:

Can I name a list of variables in stata, so that I can
use that label instead of typing variable names in

i.e. spec 1 = x y z ....

regress spec1
This is done using the Stata macro language, in the online help for -macro-. The -unab- command is very useful. In Stata, type -whelp unab- to find out more about -unab-.

Hope this helps.


Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
Division of Asthma, Allergy and Lung Biology
King's College London

5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]

Opinions expressed are those of the author, not the institution.

* For searches and help try:

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