Hi everyone,
I am currently writing my thesis which focuses on the relationship between poverty reduction and foreign aid (official development assistance). I am using unbalanced panel data for 21 SSA countries over the period 2000-2020. I was told by my supervisor to add country-specific and time-fixed effects but I am facing difficulties understanding how to include them in my model.
Based on the hausman test, I should use the FEM.
My first question concerns the country-fixed effects. I have created a dummy variable ("landlocked) however, when i regress log_inf mort ( my dependant variable) on log_odagni (key independant variable) and the other 5 control variables and add the "i.landlocked" or even "i.country" variable to account for country-fixed effects I get the " " countryid/landlocked ommited because" of collinearity error message. Following this, my supervisor told me that I should add a dummy variable for each country but I read that adding dummy variables which are time-constant are likely to be swiped out as when one uses the "xtreg, fe" command because this command already includes the country-specific effets. So I am kind of confused on how I should account for country-fixed effects in this case ?
code:
xtreg log_infmort log_odagni log_gini log_infl log_trade log_gdppercap log_fdi i.countryid, fe vce(cluster countryid)
xtreg log_infmort log_odagni log_gini log_infl log_trade log_gdppercap log_fdi i.landlocked, fe vce(cluster countryid)
Stata says that " countryid/landlocked ommited because" of collinearity error.
Following those results, I was told to use the "regress i.year I.country , ro" command. What I don't understand is the difference between "xtreg, fe" and " regress, ro". Can I use the latter in a fixed-effect panel data analysis ? Also, does using the '" fe, vce (cluster countryid) command makes any sense when I only have 21 countries in my dataset ?
Thanks in advance!
I am currently writing my thesis which focuses on the relationship between poverty reduction and foreign aid (official development assistance). I am using unbalanced panel data for 21 SSA countries over the period 2000-2020. I was told by my supervisor to add country-specific and time-fixed effects but I am facing difficulties understanding how to include them in my model.
Based on the hausman test, I should use the FEM.
My first question concerns the country-fixed effects. I have created a dummy variable ("landlocked) however, when i regress log_inf mort ( my dependant variable) on log_odagni (key independant variable) and the other 5 control variables and add the "i.landlocked" or even "i.country" variable to account for country-fixed effects I get the " " countryid/landlocked ommited because" of collinearity error message. Following this, my supervisor told me that I should add a dummy variable for each country but I read that adding dummy variables which are time-constant are likely to be swiped out as when one uses the "xtreg, fe" command because this command already includes the country-specific effets. So I am kind of confused on how I should account for country-fixed effects in this case ?
code:
xtreg log_infmort log_odagni log_gini log_infl log_trade log_gdppercap log_fdi i.countryid, fe vce(cluster countryid)
xtreg log_infmort log_odagni log_gini log_infl log_trade log_gdppercap log_fdi i.landlocked, fe vce(cluster countryid)
Stata says that " countryid/landlocked ommited because" of collinearity error.
Following those results, I was told to use the "regress i.year I.country , ro" command. What I don't understand is the difference between "xtreg, fe" and " regress, ro". Can I use the latter in a fixed-effect panel data analysis ? Also, does using the '" fe, vce (cluster countryid) command makes any sense when I only have 21 countries in my dataset ?
Thanks in advance!
Comment