Hi
I have two variables which I need to use to generate a new variable. to be more
specific, suppose I have variable X (which is a numeric string) and variable Y
(which is numeric). the observations are as follows:
X Y
2 23 3000 2
212343000 3
2 4 20 12
and I need to generate a new variable, say Z which looks like
Z
2 23 3000 2
212343000 3
2 4 2012
can someone suggest whats the best way of handling this problem?
Thx
Pooja Gupta
*
* 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/