Sorry, Friedrich -- I didn't see that you had said to rename the variables. Your way will obviously work.
Eric
>Wanli,
>
>Rename the variables in one file, merge the data and then calculate
>the difference.
>
>Friedrich Huebler
>
>--- Wanli Zhao <[email protected]> wrote:
>> I have 2 datasets. Each one has 10 variables and they share the
>> same names
>> across the 2 data files. Is there a quick way to generate the third
>> file
>> which has the differenced values for each variables in the 2
>> original files?
>> Thanks.
>>
>> Cheers,
> > Wanli
>
--
===================================================
Eric G. Wruck
Econalytics
2535 Sherwood Road
Columbus, OH 43209
ph: 614.231.5034
cell: 614.330.8846
eFax: 614.573.6639
eMail: [email protected]
website: http://www.econalytics.com
====================================================
*
* 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/