Hello everyone,
I am new to Stata (like many of the posters here) and am trying to analyzte a rather large project dataset. The set gives information on certain projects, donors and recipients, as well as project amount. Just as an example, lets say this is the dataset:
I want to find out who the main recipients by project amount are (this example is small, but lets say I want to focus on the 10 largest recipient countries in my dataset.)
E.g.:
Brazil 550
Nicaragua 310
South Africa 200
And I can't, for the life of me, figure out how to do that. sum() wont work, "total" works to calculate one recipient, but I have somewhat over 200 (including unspecified and NGOs etc). Bar graphs are unreadable if don't restrict them to a certain number of countries on the y-axis.
I suppose this is one of these things thats pretty easy, but I am completely stuck on it.
Thank you very much in advance for any support.
I am new to Stata (like many of the posters here) and am trying to analyzte a rather large project dataset. The set gives information on certain projects, donors and recipients, as well as project amount. Just as an example, lets say this is the dataset:
project | donor | recipient | amount |
1 | Germany | Brazil | 100 |
2 | Netherlands | South Africa | 150 |
3 | Switzerland | Nicaragua | 300 |
4 | USA | Brazil | 450 |
5 | China | Nicaragua | 10 |
6 | Russia | South Africa | 50 |
I want to find out who the main recipients by project amount are (this example is small, but lets say I want to focus on the 10 largest recipient countries in my dataset.)
E.g.:
Brazil 550
Nicaragua 310
South Africa 200
And I can't, for the life of me, figure out how to do that. sum() wont work, "total" works to calculate one recipient, but I have somewhat over 200 (including unspecified and NGOs etc). Bar graphs are unreadable if don't restrict them to a certain number of countries on the y-axis.
I suppose this is one of these things thats pretty easy, but I am completely stuck on it.
Thank you very much in advance for any support.
Comment