I want to be guided on the stata commands for fixed and random effects when controlling for (1) year dummies, (2) industry dummies, (3) country dummies.
Fixed effect commands (with year dummies):
xtreg y x1 x2 x3 x4 x5 x6 x7 i.year, fe
areg y x1 x2 x3 x4 x5 x6 x7 i.year, absorb(country)
regress y x1 x2 x3 x4 x5 x6 x7 i.country i.year
Fixed effect commands (with year & industry dummies):
xtreg y x1 x2 x3 x4 x5 x6 x7 i.year i.industry, fe
areg y x1 x2 x3 x4 x5 x6 x7 i.year i.industry, absorb(country)
regress y x1 x2 x3 x4 x5 x6 x7 i.country i.year i.industry
However, if I want to control for year, industry, and country dummies, does it mean that I will have to use only the regress command (regress y x1 x2 x3 x4 x5 x6 x7 i.country i.year i.industry)?
Again, I discovered that when industry dummies and year dummies are included in the xtreg, fe command, the results for the industry dummies will be deleted. Does it mean that I can only use the regress command via the LSDV method?
Fixed effect commands (with year dummies):
xtreg y x1 x2 x3 x4 x5 x6 x7 i.year, fe
areg y x1 x2 x3 x4 x5 x6 x7 i.year, absorb(country)
regress y x1 x2 x3 x4 x5 x6 x7 i.country i.year
Fixed effect commands (with year & industry dummies):
xtreg y x1 x2 x3 x4 x5 x6 x7 i.year i.industry, fe
areg y x1 x2 x3 x4 x5 x6 x7 i.year i.industry, absorb(country)
regress y x1 x2 x3 x4 x5 x6 x7 i.country i.year i.industry
However, if I want to control for year, industry, and country dummies, does it mean that I will have to use only the regress command (regress y x1 x2 x3 x4 x5 x6 x7 i.country i.year i.industry)?
Again, I discovered that when industry dummies and year dummies are included in the xtreg, fe command, the results for the industry dummies will be deleted. Does it mean that I can only use the regress command via the LSDV method?
Comment