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]

From |
Nick Cox <njcoxstata@gmail.com> |

To |
Nick Cox <njcoxstata@gmail.com> |

Subject |
Re: st: Using variable label |

Date |
Wed, 21 Sep 2011 09:27:38 +0100 |

Nick On 21 Sep 2011, at 07:20, Nick Cox <njcoxstata@gmail.com> wrote:

Ay: David is quite correct. In short, if a command has no option toshow variable labels, then you can't show variable labels with thatcommand; it is usually the case that there is no such option withstatistical commands, because typically there wouldn't be enoughspace to show variable labels; and if there is such an option, thenit will be documented. The only alternative is that you learn how toprogram in Stata and write your own alternative commands.In general, an option -nolabel- will make no difference if it is thedefault or there are no labels defined, and you need to payattention to whether value labels or variable labels are meant.Nick On 21 Sep 2011, at 06:23, Ay <yuniphone@yahoo.co.id> wrote: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 labelsrather than the variable names to label the results if there is aroom."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. Yun On 21 Sep 2011, at 13:05, David Kantor <kantor.d@att.net> wrote:At 07:42 PM 9/20/2011, Yun wrote:Hi all,Does anyone know how to list or use variable label instead ofvariable name in stata?For instance when you use command: sum varlists. I'm using stata 11.0I prefer to use variable label & had read about label in thestata 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 commandbox 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 orvariable labels.For example, -tabulate- uses variable labels; -summarize- usesnames.For most commands, there is no control over this. Actually, I amnot aware of any Stata-supplied command that gives you controlover this behavior, though my experience is limited or I may beoverlooking something. Conceivably, it is possible to create acommand with that option, but it's not usually done (or I'moverlooking something).For commands that potentially display a lot of variables (otherthan -describe-, which gives you both), names are the appropriatechoice.Some commands (for example, -tabulate-) have a -nolabel- option(possibly the opposite of what you had in mind), but this usuallyrefers to value labels -- a feature distinct from variable labels.HTH --David * * 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/

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

**References**:**st: Using variable label***From:*Ay <yuniphone@yahoo.co.id>

**Re: st: Using variable label***From:*Roger Newson <r.newson@imperial.ac.uk>

**Re: st: Using variable label***From:*Ay <yuniphone@yahoo.co.id>

**Re: st: Using variable label***From:*Ay <yuniphone@yahoo.co.id>

**Re: st: Using variable label***From:*David Kantor <kantor.d@att.net>

**Re: st: Using variable label***From:*Ay <yuniphone@yahoo.co.id>

**Re: st: Using variable label***From:*Nick Cox <njcoxstata@gmail.com>

- Prev by Date:
**RE: st: Naming Equations in Stata** - Next by Date:
**RE: st: Naming Equations in Stata** - Previous by thread:
**Re: st: Using variable label** - Next by thread:
**st: RE: xtscc and small samples (equal size T and N)** - Index(es):