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

st: RE: merge...


From   "Daniel Muller" <[email protected]>
To   <[email protected]>
Subject   st: RE: merge...
Date   Tue, 2 Jul 2002 09:22:24 +0700

If I understand your question correctly, then what you want is -joinby- with
the command looking something like
-joinby, unm(m)-
where the master dataset is your first one and the variables you do the join
on need to have same names and be sorted.

Hope that helps,
Daniel

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Riano,
> Alejandro
> Sent: Tuesday, July 02, 2002 2:25 AM
> To: [email protected]
> Subject: st: merge...
>
>
> Dear Statalisters, i have two databases, the first one has monthly data by
> country like this:
>
> country      year    month    var1
> Argentina   1989      1          x
> Argentina   1989      2          x
>       .             .         .           .
>       .             .         .           .
> Argentina   1999      12        x
>
>
> for some set of countries (103 in total) and i have a second
> database which
> has all the bilateral combinations among the countries that are
> included in
> the first database (on a YEARLY basis), like this:
>
>
> country1       country2          year      var2
> Argentina      Brazil              1989       x
> Argentina      Brazil              1990       x
>       .                .                      .         .
>       .                .                      .         .
> Zambia         Zimbabwe        1999       x
>
> My problem is that i want to merge the var1 of the first database into the
> second one and in that way trasform my second bilateral base from a yearly
> frecuency to a monthly one. Do you have any idea about how could
> i do this ?
>
>
> Thanks in advance....
>
>
> Alejandro Riano
> ==========================
> Research Department
> Inter-American Development Bank
> (202) 623-1932
> [email protected]
> ==========================
>
>
> *
> *   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/
>

*
*   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