Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: abbreviating a variable list in regression commands


From   Shuaizhang Feng <[email protected]>
To   [email protected]
Subject   st: abbreviating a variable list in regression commands
Date   Wed, 25 Mar 2009 10:49:51 -0700 (PDT)

dear all:

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

I am not quite clear about the exact syntax that would work. Thanks a lot for your help.

Shuaizhang


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



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