I'm having some difficulties with a regression. When using xtreg with fixed effects two of my variables are omitted due to multicollinearity.
My panel data analysis encompasses 12 countries and the time period is 2003 to 2017. The variables I have are:
Dependent variable: export2: export value
Independent variables: (7-12 are just governance indicators).
- culdist: cultural distance
- geod: geographical distance
- fta: free trade agreements
- gdppc2: GDP per capita
- inflation
- exchrate: exchange rate
- account:
- polinest
- goveff
- regqual
- rol
- coco
The first thing I thought is that both variables are the same for each country over the years.
Question 1: Is it possible that that is the reason of the multicollinearity?
Question 2: if so, how do I fix that problem so those variables are not omitted?
Code:
*Handling missing values replace exchrate=.a if exchrate == 999 * Exploratory plots encode cntry, gen(country) xtset country year xtline export2 xtline export2, overlay bysort country: egen export2_mean=mean(export2) twoway scatter export2 country, msymbol(circle_hollow) || connected export2_mean country, /// msymbol(diamond) || , xlabel(1 "A" 2 "B" 3 "C" 4 "D" 5 "E" 6 "F" 7 "G" 8 "H" 9 "I" 10 "J" 11 "K" 12 "L") bysort year: egen export2_mean1=mean(export2) twoway scatter export2 year, msymbol(circle_hollow) || connected export2_mean1 year, msymbol(diamond) || , xlabel(2003(1)2017) *FE regression xtreg export2 culdist geod fta account polinest goveff regqual rol coco gdppc2 /// inflation exchrate, fe estimates store fixed
Alba
0 Response to Variables omitted due to multicollinearity- is it about the type of variable?
Post a Comment