Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Obtaining a list of variables, their descriptions and their labels


From   Eric Booth <ebooth@ppri.tamu.edu>
To   "<statalist@hsphsun2.harvard.edu>" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Obtaining a list of variables, their descriptions and their labels
Date   Tue, 12 Jul 2011 15:06:53 +0000

<>

   -findit- returns many potential user programs including,  labellist, labelsof, uselab, lablist, and more.  
My favorite for this task (and one that gives an output similar to what you describe) is -fre- (from SSC).  However, -fre- only gives you value labels have corresponding values, by default.  If you want to see all the values (even those that are defined, but there is no corresponding value), you'd type:  -fre varname, includelabeled-  
Also, note that -codebook varname- is another way to show value labels for values that exist.

- Eric
__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
ebooth@ppri.tamu.edu
Office: +979.845.6754


On Jul 12, 2011, at 9:41 AM, Stacey Gelsheimer wrote:

> I recently found the AMAZING label list function which made what I am
> doing at this stage MUCH easier, but I was disappointed that the
> variable descriptions were missing. It seems it would be easy to fill
> the rest of the line following the variable name with some information
> that would make this a perfectly comprehensible list of everything
> about the variables you need to know. I'm assuming something like this
> exists, I just have yet to find it.. Does anyone know the best way?
> For example, from label list, I see "v024 1 north, 2 south, 3 east, 4
> west" but I would LOVE to see "v024 REGION 1 north 2 south 3 east 4
> west." With region it's obviously very clear what the variable
> references, but when the labels are "1 yes 2 no" it's not as clear.
> Thanks for your time and your help!
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index