Model-diagnostics based on cumulative residuals