How can residual centering be done after running a panel data regression?
It can be done easily after running a simple linear regression as follows.
However, after running a fixed effects model, the option residuals (res) does not work.
What option should be included at the end of the predict command instead of res for panel data regressions?
It can be done easily after running a simple linear regression as follows.
sysuse auto, clear
generate interact = weight*length
quietly regress interact weight length
predict interact_rc, res
generate interact = weight*length
quietly regress interact weight length
predict interact_rc, res
What option should be included at the end of the predict command instead of res for panel data regressions?
Comment