residuals.MSAassess function

Calculate model residuals