Hello everyone,
I work with a panel dataset comprising 46 countries over a time period of 55 years (1960 to 2014). I estimate this model with country-specific fixed effects and country-specific time trends.
I first created the fixed effects and time-trends manually (only included 45 isntead of 46 for both, I hope that was correct?) and estimated the regression with the -regress- command. As a check, I re-estimated the regression using the -xtreg- command with the fe option obviously only including the country-specific time trends this time. iccountry* are the fixed effects and icyear* are the country-specific time trends. Here's the code and the output (I only display the first five fixed effects and time trends as the entire thing would have have been too large).
I now have three questions related to this:
First, the confrontation_incidence variable (binary dependent variable) does not change over time for a number of countries. If I understood the fixed-effect estimation procedure correctly, there should hence be perfect collinearity (perfect prediction) between the time-invariant dependent variable and the fixed-effect for these countries. Consequently, these observations should be omitted in my opinion. However, Stata does not do that and the number of observations is 2158 which is the total number of my observations. Why is that?
Second, why do the coefficients on my regressors (temperature, rainfall, icyear*) differ for the -regress- and the -xtreg- commands even though the only difference between them is the fact that I computed the fixed effects manually for the -regress- command.
Third, why isn't the constant omitted as I am using fixed effects?
Thank you for your consideration.
I work with a panel dataset comprising 46 countries over a time period of 55 years (1960 to 2014). I estimate this model with country-specific fixed effects and country-specific time trends.
I first created the fixed effects and time-trends manually (only included 45 isntead of 46 for both, I hope that was correct?) and estimated the regression with the -regress- command. As a check, I re-estimated the regression using the -xtreg- command with the fe option obviously only including the country-specific time trends this time. iccountry* are the fixed effects and icyear* are the country-specific time trends. Here's the code and the output (I only display the first five fixed effects and time trends as the entire thing would have have been too large).
Code:
. quietly regress confrontation_incidence temp rainfalllog iccountry* icyear*,vce(cluster country1) . est store eq1 . quietly xtreg confrontation_incidence temp rainfalllog icyear*, fe vce(cluster country1) . est store eq2 . esttab eq1 eq2,b(4) -------------------------------------------- (1) (2) confrontat~e confrontat~e -------------------------------------------- temp -0.0122 -0.0154 (-0.58) (-0.75) rainfalllog -0.0004 -0.0232 (-0.01) (-0.88) iccountry1 -0.5452 (-1.40) iccountry2 -0.6038 (-1.27) iccountry3 1.2843* (2.69) iccountry4 -0.4390 (-1.98) iccountry5 -0.1841 (-0.67) icyear1 0.0005 0.0007 (0.53) (0.78) icyear2 0.0004 0.0006 (0.57) (0.76) icyear3 -0.0333*** -0.0331*** (-31.38) (-31.92) icyear4 0.0005 0.0007 (0.52) (0.78) icyear5 -0.0034*** -0.0033*** (-3.83) (-3.80) _cons 0.6151 0.6968 (0.97) (1.34) -------------------------------------------- N 2158 2158
First, the confrontation_incidence variable (binary dependent variable) does not change over time for a number of countries. If I understood the fixed-effect estimation procedure correctly, there should hence be perfect collinearity (perfect prediction) between the time-invariant dependent variable and the fixed-effect for these countries. Consequently, these observations should be omitted in my opinion. However, Stata does not do that and the number of observations is 2158 which is the total number of my observations. Why is that?
Second, why do the coefficients on my regressors (temperature, rainfall, icyear*) differ for the -regress- and the -xtreg- commands even though the only difference between them is the fact that I computed the fixed effects manually for the -regress- command.
Third, why isn't the constant omitted as I am using fixed effects?
Thank you for your consideration.
Comment