Dear all,

I am using Stata 16, on mac. I want to create a new variable called resid_sq that is equal to the square of the residuals. I used the following command: predict resid_sq, residuals. Would that be the correct way to achieve my goal?

Thank you in advance for your help

Jason Browen