-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
--- On Wed, 25/3/09, Shuaizhang Feng wrote:
> i am wondering how to use an abbreviation for a long list
> of explanatory variables in a regression command (for the
> purpose of repeating it).
>
> for example, consider the command:
>
> reg y xyz qwe abc
>
> if I want to use z to refer to the list "xyz qwe
> abc" so that I can write something shorter such as:
>
> reg y z
local z "xyz qwe abc"
reg y `z'
Hope this helps,
Maarten
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/