Added standardized residuals function and computed them for P2.21