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

st: Re: new variable from 2 datasets


From   Friedrich Huebler <huebler@rocketmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: new variable from 2 datasets
Date   Sat, 12 Nov 2005 11:12:01 -0800 (PST)

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



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.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