Model : ivreghdfe itotf (qt = lagqt lagcfo) cfo, absorb(gvkey fyear) endog(qt) cluster(gvkey) resid

----- Resid is not allowed

Another way I can find residuals is by predicting yhat and measuring the difference between DV and yhat. Though I can predict yhat from the above regression,
the yhat values are wrong.

Can any one help me either predict yhat correctly or residuals?