Dear all,
for my master thesis I am currently working with firm balance sheet data. I would like to explore the impact of taxes on firms debt ratio. I have a large dataset with firms and their subsidaries. For my analysis; I would like to focus on the subsidaries and run a fixed effects regression. I would like to implement subsidary and year fixed effects. For the subsidaries, the data gives a unique ID number for each subsidary. I implemented the fixed effects on that ID number using the xtset command:
egen sub_id = group(BVDID_SUB) // the id variable is a string, so I converted it into numeric
xtset sub_id year1 // I place fixed effects on the subsidaries and on the years
drop if sub_id==. // I drop missing values
xtreg Y x1 x2 x3, fe // then I run my fixed effects regression
Is it correct to place fixed effects on the id variable or are there other ways to implement them for subsidaries?
Thank you in advance
for my master thesis I am currently working with firm balance sheet data. I would like to explore the impact of taxes on firms debt ratio. I have a large dataset with firms and their subsidaries. For my analysis; I would like to focus on the subsidaries and run a fixed effects regression. I would like to implement subsidary and year fixed effects. For the subsidaries, the data gives a unique ID number for each subsidary. I implemented the fixed effects on that ID number using the xtset command:
egen sub_id = group(BVDID_SUB) // the id variable is a string, so I converted it into numeric
xtset sub_id year1 // I place fixed effects on the subsidaries and on the years
drop if sub_id==. // I drop missing values
xtreg Y x1 x2 x3, fe // then I run my fixed effects regression
Is it correct to place fixed effects on the id variable or are there other ways to implement them for subsidaries?
Thank you in advance

Comment