I am trying to run a regression where the dependent variable is binary (1 = Debt Default) and the independent variables are continuous (Debt/GDP) and binary (1 = Pegged exchange rate). For each country for each year I have a value for Debt/GDP and whether or not exchange rate was pegged for that year.
My sample is of 39 countries over the period 1980-2005 (I.E. Argentina 1980-2005, Bolivia 1980-2005). For each of these countries I would like to measure the average impact of a dummy and continuous variable on the dependent variable (probability of Debt Default). Is there a way I can average the effect of the 2 variable across all countries so that I get one coefficient for each variable? My data looks like this -
Regression coefficients calculation: