Hi everyone!
I am currently trying to analyze the impact of militaryexpenditure(ME) on GDP growth in a panel data set using Fixed Effect. I have my list of countries already as a variable as "Country". I have created the countries into a group variable using egen id= group(country). this variable is called id. The other variable is Capital formation (CF). My variable Year is for the time period 1997 to 2017
I wanted to see if the financial crises of 2001 and 2008, 2009 had any impact on military expenditure and economic growth. I'm not really sure how to go about doing that in my regression. I did gen recession= (Year==2001| Year==2008|Year==2009)
My model is: lnGDP = α0+α1lnME+α2ln(CF)+ε which is using a log function.
For my Fixed Effect model, I did Xtset id Year(this is for the years from 1997 to 2017), yearly
I did Xtreg ln(GDP) ln(ME) lnCF , fe r
However, I am not sure how to include the dummy variable into my regression to test for those years. Any help is appreciated!
I am currently trying to analyze the impact of militaryexpenditure(ME) on GDP growth in a panel data set using Fixed Effect. I have my list of countries already as a variable as "Country". I have created the countries into a group variable using egen id= group(country). this variable is called id. The other variable is Capital formation (CF). My variable Year is for the time period 1997 to 2017
I wanted to see if the financial crises of 2001 and 2008, 2009 had any impact on military expenditure and economic growth. I'm not really sure how to go about doing that in my regression. I did gen recession= (Year==2001| Year==2008|Year==2009)
My model is: lnGDP = α0+α1lnME+α2ln(CF)+ε which is using a log function.
For my Fixed Effect model, I did Xtset id Year(this is for the years from 1997 to 2017), yearly
I did Xtreg ln(GDP) ln(ME) lnCF , fe r
However, I am not sure how to include the dummy variable into my regression to test for those years. Any help is appreciated!
Comment