Statalist


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

Re: st: AW: How can I efficiently see which value of a categorical variable corresponds to which label


From   Dag Tanneberg <dag_tanneberg@web.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: AW: How can I efficiently see which value of a categorical variable corresponds to which label
Date   Mon, 07 Dec 2009 13:37:51 +0100

Dear Jen,

to add a fourth possibility you might want to have a look at the -numlabel- command. It adds the underlying numeric value to a value label and comes in handy especially when working with -tab-.

Best,

Dag

Martin Weiss schrieb:
<>
You may also want to look at -codebook- and -inspect-. The Variables Manager
in Stata 11 allows you to efficiently manage value labels, btw.



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Jen Zhen
Gesendet: Sonntag, 6. Dezember 2009 00:15
An: statalist@hsphsun2.harvard.edu
Betreff: st: How can I efficiently see which value of a categorical variable
corresponds to which label

Dear colleagues,

I have a probably basic question, but to which I could not find a
satisfactory answer:

I have a categorical variable for which different values carry
different labels, and I would like to see which value corresponds to
which label.

Using the -tab varname- command, I can see all labels, and using -tab
varname, nolabel- I can see all values, but since the list of possible
values/labels is long, I'd like to see both at the same time. The only
way I've been able to do this so far is to browse the variable, which
however seems rather ineffiecient as well.

Is there a better command or tab option to do this?

Thanks,
Jen

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


--
Dag Tanneberg

Buschallee 106
13088 Berlin

Tel.: 0178 / 65 909 11
Email: Dag_Tanneberg@web.de
--

*
*   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   |   What's new   |   Site index