Dear all,
I am dealing with a panel data set with 31 provinces over 16 years examining the amount of development finance as logged Y variable and a set of X variables. I am using 12.1 version of stata and using both reg and xtreg to examine the effect (the reason I use reg only to justify a FE analysis, it is not center of my research).
The problem is: province number 31 does not receive development finance for 11 out of 16 years, thus the logged Y variable is 0 for those 11 years. My question is how to deal with this province in the fixed effects analysis, because it changed the significant variables to be insignificant in the results?
I have tried both: excluding the province and including the dummy: i.province31 in reg. But the dummy is being omitted in the xtreg. So I tried excluding the province and compared xtreg with and without the province 31, the R squared are the following:
with province31: R-sq: within = 0.0375
without province31: R-sq: within = 0.1105
The two codes I used are:


I will attach both outputs, I hope you can see it and it is readable. I am new to stata and thankful for any suggestions. Thankyou
Mei
I am dealing with a panel data set with 31 provinces over 16 years examining the amount of development finance as logged Y variable and a set of X variables. I am using 12.1 version of stata and using both reg and xtreg to examine the effect (the reason I use reg only to justify a FE analysis, it is not center of my research).
The problem is: province number 31 does not receive development finance for 11 out of 16 years, thus the logged Y variable is 0 for those 11 years. My question is how to deal with this province in the fixed effects analysis, because it changed the significant variables to be insignificant in the results?
I have tried both: excluding the province and including the dummy: i.province31 in reg. But the dummy is being omitted in the xtreg. So I tried excluding the province and compared xtreg with and without the province 31, the R squared are the following:
with province31: R-sq: within = 0.0375
without province31: R-sq: within = 0.1105
The two codes I used are:
Code:
xtreg lnFINPP_PY2 GRPpc_L rSTBDGT_L TOPOP_L rFRBDGT_L EAST , cluster(province_id) fe
Code:
xtreg lnFINPP_PY2 GRPpc_L rSTBDGT_L TOPOP_L rFRBDGT_L EAST if(province_id < 31), cluster(province_id) fe
I will attach both outputs, I hope you can see it and it is readable. I am new to stata and thankful for any suggestions. Thankyou
Mei
Comment