Dear all
I'm running a panel data regression, with 7 independent variables and 1756 firms over 4 years. I have 5,920 observations. I created the panel typing: xtset Firms Year
The (preliminary) results are consistent with the literature but I want to include fixed effects (after an Hausman test) . Particularly, I have two additional variables (not included before) containing respectively industry and countries of each firm, and I would include Industry and Country Fixed Effects. Country fixed effects should capture systematic differences in the financial environment across countries (such as bankruptcy laws) while industry fixed effects (controlling for manufacturing, commerce, and retail firms) control for systematic differences in risk & performance across sector types.
My problem is about how to add Industry and Country Fixed Effects to the baseline regression.
I typed the following lines of command where I correct st. err. for heteroskedasticity:
egen country_industry=group(Country Industry)
xtreg DepVar Var1 Var2 Var3 Var4 Var5 Var6 Var7, i(country_industry)fe robust
The results are very interesting, but I was wondering whether my commands are correct (my inexperience leads me to be cautious). Have anyone suggestion?
Thanks in advance
I'm running a panel data regression, with 7 independent variables and 1756 firms over 4 years. I have 5,920 observations. I created the panel typing: xtset Firms Year
The (preliminary) results are consistent with the literature but I want to include fixed effects (after an Hausman test) . Particularly, I have two additional variables (not included before) containing respectively industry and countries of each firm, and I would include Industry and Country Fixed Effects. Country fixed effects should capture systematic differences in the financial environment across countries (such as bankruptcy laws) while industry fixed effects (controlling for manufacturing, commerce, and retail firms) control for systematic differences in risk & performance across sector types.
My problem is about how to add Industry and Country Fixed Effects to the baseline regression.
I typed the following lines of command where I correct st. err. for heteroskedasticity:
egen country_industry=group(Country Industry)
xtreg DepVar Var1 Var2 Var3 Var4 Var5 Var6 Var7, i(country_industry)fe robust
The results are very interesting, but I was wondering whether my commands are correct (my inexperience leads me to be cautious). Have anyone suggestion?
Thanks in advance
Comment