Hi,
I am new to Stata and I need some help on the following problem.
I have used regression by groups and would now like to predict residuals for each group. Lets say I have estimated the regression based on the industry code of the companies and for each industry code I now need the residuals. The simple predict, residuals is not helping nor is e(sample) as it only computes the regression based on the last estimation. I need to get the residuals based on groups.
Any help would be much appreciated.
I am new to Stata and I need some help on the following problem.
I have used regression by groups and would now like to predict residuals for each group. Lets say I have estimated the regression based on the industry code of the companies and for each industry code I now need the residuals. The simple predict, residuals is not helping nor is e(sample) as it only computes the regression based on the last estimation. I need to get the residuals based on groups.
Any help would be much appreciated.
Comment