Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Using variable label |
Date | Wed, 21 Sep 2011 20:25:47 +0100 |
-outreg- is user-written (SSC). As I wrote before, the help explains about the -varlabels- option. It also gives an example. You could have found it this yourself with a little effort. Nick On Wed, Sep 21, 2011 at 8:14 PM, Ay <yuniphone@yahoo.co.id> wrote: > 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 <njcoxstata@gmail.com> 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 <kantor.d@att.net> 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/