-encode- is a built-in command, so there is no ado code to hack.
tom
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Daniel Egan
> Sent: Tuesday, November 23, 2004 4:33 PM
> To: [email protected]
> Subject: st: adding numerical value of -encode-ed value to label
>
>
> Hello,
> I have a a variable that I am encoding, that takes on a large
> number of values.
>
> How would one go about hacking -encode- such that in the
> value labels generated the numerical value is automatically
> added to the label, i.e.
>
> sysuse auto
> encode make, gen(make2)
> table make, c(m make2)
>
> where make2's labels should have
> 1- AMC Concord
> 2- AMC Pacer
>
> and so on...
>
-----------------------------------------
CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s),
contains information that may be confidential, protected by the attorney-
client or other legal privileges, and/or proprietary non-public
information. If you are not an intended recipient of this message or an
authorized assistant to an intended recipient, please notify the sender by
replying to this message and then delete it from your system. Use,
dissemination, distribution, or reproduction of this message and/or any of
its attachments (if any) by unintended recipients is not authorized and
may be unlawful.
*
* 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/