Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: -levels- question


From   "Danielle H. Ferry" <[email protected]>
To   StataList <[email protected]>
Subject   st: -levels- question
Date   Thu, 18 Sep 2003 13:06:38 -0400

Hi there,

Using the example provided in the documentation of -levels-:

    . levels factor, local(levels)
    . foreach l of local levels {
    .        di "-> factor = `l'"
    .        whatever if factor == `l'
    . }

Is it possible to display the value labels of factor rather than the
numerical codes? 

Any help would be great. Thanks.

-- 
Danielle H. Ferry
National Bureau of Economic Research
365 Fifth Avenue, 5th Floor
New York, NY 10016
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index