Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Sum of specific observations of the same variable
From 
 
Andreas Dimopoulos <[email protected]> 
To 
 
<[email protected]> 
Subject 
 
st: Sum of specific observations of the same variable 
Date 
 
Tue, 04 Mar 2014 07:45:59 +0000 
Hello there,
I have data on bilateral trade that shows the export flows from country i
(reporter) to country j (partner). For example:
reporter partner trade
Albania  Austria  X1
Albania  Armenia  X2
.         .        .
.         .        .
.         .        .
Austria  Albania  Xn
Austria  Armenia  Xn+1
.         .        .
.         .        .
I want to find the total trade flows between the countries.In other words,
I want to sum the trade from one pair (eg Albania Austria) plus the trade
from the inversed pair (eg Austria Albania) for around 6000
observations..Is there any way I could possibly do this?
Thanks,
Andrew
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/