Hello All,
I have a dyadic panel data-set that has the following variables: country a, country b, year and alliances between a and b (dichotomous). I want to calculate, by year, for each country a, the sum of alliances that each country b has with all countries that do not have an alliance with that given country a. I would like to loop that through all dyads.
is this possible? Any tips on how I could do that?
Many thanks!
I have a dyadic panel data-set that has the following variables: country a, country b, year and alliances between a and b (dichotomous). I want to calculate, by year, for each country a, the sum of alliances that each country b has with all countries that do not have an alliance with that given country a. I would like to loop that through all dyads.
is this possible? Any tips on how I could do that?
Many thanks!
Comment