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

st: RE: adding numerical value of -encode-ed value to label

From   "Steichen, Thomas J." <[email protected]>
To   <[email protected]>
Subject   st: RE: adding numerical value of -encode-ed value to label
Date   Tue, 23 Nov 2004 16:49:53 -0500

-encode- is a built-in command, so there is no ado code to hack.

> -----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:

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