I run a panel model.
I want to calculate the error terms associated with each observation while regressing.

How can I do so?