Bookmark and Share

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

[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   Wed, 21 Sep 2011 15:23:00 +1000

Hi David,
Thank you for your reply. 

Yes, i want to use variable label.
I have read in the stata user's guide (u.pdf) page 132 about it. 
The last sentence is
"whenever Stata produces output, it will use the variable labels rather than the variable names to label the results if there is a room."

I am wondering if i could use varlabel along with outreg command.

In the guide book, an example given for: describe command only.

Thank you.


On 21 Sep 2011, at 13:05, David Kantor <[email protected]> wrote:

> At 07:42 PM 9/20/2011, Yun wrote:
>> Hi all,
>> Does anyone know how to list or use variable label instead of variable name in stata?
>> For instance when you use command: sum varlists.
>> I'm using stata 11.0
>> I prefer to use variable label & had read about label in the stata guide but didn't find how to use varlabel label.
>> I just knew how to create it.
>> It is the label in variable box on the left in the stata screen, usually appears in the second coloumn after variable name.
>> I try an example with '"nolabel'" word attached in the command box but seen an error message in red:
>> option nolabel not allowed
>> r(198);
>> Thank you in advanced.
>> Yun
>> [...]
> If I understand correctly, you want a variable label to appear, rather than the name.
> Each command has its own "policy" on whether to display names or variable labels.
> For example, -tabulate- uses variable labels; -summarize- uses names.
> For most commands, there is no control over this. Actually, I am not aware of any Stata-supplied command that gives you control over this behavior, though my experience is limited or I may be overlooking something. Conceivably, it is possible to create a command with that option, but it's not usually done (or I'm overlooking something).
> For commands that potentially display a lot of variables (other than -describe-, which gives you both), names are the appropriate choice.
> Some commands (for example, -tabulate-) have a -nolabel- option (possibly the opposite of what you had in mind), but this usually refers to value labels -- a feature distinct from variable labels.
> --David
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index