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 on April 23, 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   Muhammad Anees <anees@aneconomist.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: label the variables
Date   Fri, 24 Jun 2011 15:27:47 +0100

The code should be re-written somehow differently

gen contx4= x4 etc

It is similar to renaming but different in that will -gen- will give
you an extra variable which retains the original var in dataset.


Anees

On Fri, Jun 24, 2011 at 1:41 PM, Nahla Samargandi
<Nahla.Samargandi@brunel.ac.uk> wrote:
> Hi,
>
> Thank you for your help. Actually what I meant regarding label the variables into groups, that I remember there was a command give this option , but unfortunately, I cant remember it well.
> when I type
>  gen helper= var helper*********************
> it gives me this massage
> var not found
> r(111);
>
> I want to put my variables into groups to be easy to choose among them when I run the regression
> ,
> for example
> dependent*******************
> y1
> y2
> y3
> explanatory********************
> x1
> x2
> x3
> control var*****************
> x4
> x5
>
> could you help me to find the command for this.
>
> Meany thanks,
> N
>
> it let your variabls apper like this
>
>
> 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/
>



-- 
Muhammad Anees
MSc & MS in Economics

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