Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: new variable from 2 datasets


From   "Eric G. Wruck" <ewruck@econalytics.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: new variable from 2 datasets
Date   Sat, 12 Nov 2005 14:34:36 -0500

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 <zhaowl@temple.edu> 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:   ewruck@econalytics.com
       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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index