Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Label the variables


From   Joerg Luedicke <joerg.luedicke@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Label the variables
Date   Thu, 23 Jun 2011 14:21:02 -0400

I am not sure if I understand the problem correctly, but maybe you are
looking for something like this:

/***********************/
sysuse auto, clear
global vlist mpg rep78 headroom trunk weight
regress price $vlist
/***********************/

where a list of variables is put into a global macro so that you only
need to put the macro into the regression statement, instead of all
variable names.

J.

On Thu, Jun 23, 2011 at 12:46 PM, Nahla Samargandi
<Nahla.Samargandi@brunel.ac.uk> wrote:
> Hi,
> How I can divided OR label my variables into numbers of groups, (ex. dependent variables, control variables, and reform variables,)
> To be more easier when run the regression and choose the variables from Stata screen
> Thanks,
> N
>
> *
> *   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/
>

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index