Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: creating a new variable
From
"King, Carina" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: creating a new variable
Date
Fri, 21 Jan 2011 16:25:24 +0000
Hi,
I want to create a new 'x' variable as I need to merge two tables using ID, x, and x2 as the unique merging variables and the x variable is not consistent between the two tables. How can I do this?
ID x x2
1 51732 2
1 51732 3
1 51732 5
1 51732 8
1 33575 2
2 0 2
3 0 1
3 0 2
3 0 3
3 77890 4
3 77890 5
3 22345 6
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/