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/