Hi,
I have two quite basic questions, I guess. My panel dataset is on bilateral asset and debt holdings. It is of the following form
1. I would like to kick out all observations where I don't have the same observations on both sides, that is in my example, I have data on the country pair Germany - Bulgaria only with Germany being the issuer. On the pairs Italy - Germany and Italy - Spain, I only have information where Italy is the issuer. So I would like to kick out these observations.
2. I want to construct a variable which for each country pair, for each year contains debt and equity from the issuer and the holder side, i.e.. for the Germany France pair, I would like to construct a variable which would be 100+40+20+30 for the year 2001 and 30+30+100+120 for the year 2002.
As I'm new with such kind of analysis, I would very much appreciate your help. Best, Johanna
I have two quite basic questions, I guess. My panel dataset is on bilateral asset and debt holdings. It is of the following form
| issuer | holder | debt | equity | year | GDP_iss |
| Germany | France | 100 | 40 | 2001 | 100 |
| Germany | France | 30 | 30 | 2002 | 300 |
| Germany | Spain | 20 | 50 | 2001 | 200 |
| Germany | Spain | 100 | 30 | 2002 | 100 |
| Germany | Bulgaria | 20 | 40 | 2001 | 255 |
| Germany | Bulgaria | 30 | 30 | 2002 | 103 |
| France | Germany | 20 | 30 | 2001 | 230 |
| France | Germany | 100 | 120 | 2002 | 340 |
| France | Spain | 234 | 320 | 2001 | 340 |
| France | Spain | 30 | 30 | 2002 | 320 |
| Spain | Germany | 34 | 90 | 2001 | 455 |
| Spain | Germany | 33 | 20 | 2002 | 342 |
| Spain | France | 20 | 330 | 2001 | 454 |
| Spain | France | 30 | 23 | 2002 | 304 |
| Italy | Germany | 34 | 23 | 2001 | 232 |
| Italy | Spain | 20 | 30 | 2002 | 402 |
2. I want to construct a variable which for each country pair, for each year contains debt and equity from the issuer and the holder side, i.e.. for the Germany France pair, I would like to construct a variable which would be 100+40+20+30 for the year 2001 and 30+30+100+120 for the year 2002.
As I'm new with such kind of analysis, I would very much appreciate your help. Best, Johanna

Comment