Updated cross-tab code for standardized residuals