I am running a panel regression with -xtreg, re- and would like to account for both year and industry fixed effects. For this purpose, I created the variable "ff_12", which places each firm in one of the 12 fama & french indusries. My problem is that my interaction term includes the dummy variable "cont_ind". This dummy is equal to 1 when a firm operates in a "controversial industry" and 0 when not. Including i.ff_12 within the same model is therefore not ideal - because both are correlated.
My current code is:
Is there any way to deal with this? And could you confirm that xtset panel_id year already serves the purpose of controlling for year fixed effects?
panel_id currently corresponds to the firm id.
My current code is:
Code:
xtset panel_id year xtreg erm_index_w L.c.ECSR_w##cont_ind roa_w leverage_w i.bigfour i.crisis_dummy i.ff_12, re vce(robust)
panel_id currently corresponds to the firm id.
Comment