| From | Roger Newson <[email protected]> |
| To | [email protected] |
| Subject | st: Re: -levels- question |
| Date | Thu, 18 Sep 2003 18:27:04 +0100 |
At 13:06 18/09/03 -0400, Danielle H. Ferry wrote:
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?
Yes. Use the extended macro function -label- (see online help for -macro-
or -[P] macro-).| © Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |