blr_residual_diagnostics function

Residual diagnostics