[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: How to put a prefix on a categorical variable that still carries label values?
From
"Jia Xiangping" <[email protected]>
To
[email protected]
Subject
st: How to put a prefix on a categorical variable that still carries label values?
Date
Thu, 28 Feb 2008 10:15:13 -0500
Dear all,
A variable in int storage type, reflecting different regions.
label region code
value
11 A
12 B
13 C
21 D
22 E
23 F
31 G
32 H
Now I want to generate a new variable with a prefix "1" denoting the
country code. But the variable still carry the codes.
111 A
112 B
113 C
121 D
122 E
123 F
131 G
How shall I do that with -recode-? Or there are some other commands for that?
--
Joseph
*
* 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 |