Predict overall, within, between residuals predict yhat, xb predict e, e
Before running regressions, your dataset needs to be properly formatted: stata panel data
Your analysis is only as good as your communication. Use: Predict overall, within, between residuals predict yhat, xb