Hi! I have a panel data quarterly (yq) and by firm (newid), so when i run xtset, y run
Now, i want to run the regression with xtreg but the fixed effect has to be by industry, with the variable sectorid and by yq. When i run
automatically stata used randomm effects, and i want fixed effects. How can i change this?
If i try with ,fe Stata run fixed effetcs of newid.
Code:
xtset newid yq
Code:
xtreg depvar indepvar i.yq i.sectorid, robust
If i try with ,fe Stata run fixed effetcs of newid.
Comment