You know the answer really. The issue is how
is Stata to read your mind and know that the
two variables with the same name should
really be different variables. Stata does
no mind-reading: it works on your wishes
as expressed in the data you read in.
So, if what to you are two different variables
in two different datasets have the same name,
then on a -merge- Stata will overwrite one with the other.
Thus you must -rename- at least one of the two
before you -merge-.
Nick
[email protected]
Alex Koltai5
Does "merge" work if the variables have the same name in the two data sets?
*
* 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/