Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Using variable label


From   Ay <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Using variable label
Date   Thu, 22 Sep 2011 05:14:27 +1000

Thank you David and Nick for the information.

Is there any example online or in the user guide about how to use outreg including varlabels?

I am used to use command:
label name educ

label variable educ "education"

label define educ 1 "primary" 2 "secondary" 3 "tertiary"

label value educ educ

when i use outreg after running a linear regression, the output that are shown in the  variable coloumn is for variable name only.  
I do not know yet whether there is an option to use variable labels for the output. If there is any, it will be useful when i run a regression with many depvars with categories etc. 


Yun









On 22 Sep 2011, at 02:36, Nick Cox <[email protected]> wrote:

> Note that Ay also asked "I am wondering if i could use varlabel along
> with outreg command."
> 
> The answer is yes, as the help explains. -outreg- (SSC) has a
> -varlabels- option.
> 
> Nick
> 
> 
> On Wed, Sep 21, 2011 at 5:26 PM, David Kantor <[email protected]> wrote:
>> At 01:25 AM 9/21/2011, Yun wrote:
>>> 
>>> One more thing that i forgot, i tried to type:
>>> 
>>> tab educ, nolabel
>>> 
>>> tab educ
>>> 
>>> Both commands show no difference at all on the output provided.
>> 
>> As I mentioned earlier, and as mentioned in the reply from Nick Cox, this
>> option applies to value labels (and educ evidently has no value label).
>> Please see -help label- for an explanation of value labels -- as distinct
>> from variable labels. Note that the -label- command manages both types of
>> labels.
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index