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?
0 Response to Predict residuals after running a FE / RE model
Post a Comment