Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: combining data sets with different dimensions


From   Kremena Platikanova <[email protected]>
To   [email protected]
Subject   st: combining data sets with different dimensions
Date   Fri, 14 Apr 2006 14:49:16 -0600

Hi,

I want to combine the following four data sets:

Data set 1:
importer   exporter   year   commodity_code   commodity_value
(for example,
USA        Canada     2003      0001             .....
USA        Canada     2003      0002             .....
USA        Canada     2003      0003             .....
USA        Canada     2004      0001             .....
USA        Canada     2004      0004             .....)

Data set 2:
importer   year   gdp_importer

Data set 3:
exporter   year   gdp_exporter

Data set 4:
importer   exporter   geograph_distance

Basically, I want to add the variables:
gdp_importer, gdp_exporter and geograph_distance (between importer and
exporter) to data set 1.

How can I do that given the difference in the dimesions of the data sets?

Thank you for yor help,

Kremena
--
Kremena Platikanova
Ph.D. Candidate
Department of Economics
University of Colorado, Boulder
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index