spDiag function

Model fit diagnostics