O'Reilly logo

Practical Predictive Analytics by Ralph Winters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Residual plots

Plots are extremely helpful at showing the residuals, and often are critical at diagnosing problems with a model:

plot(residuals(PainGLM, type="deviance")) 

The plot which is output indicates a good example of neatly distributed residuals. Along the range of index, the residuals look like they are scattered around 0, and there seems to be no major trending upwards or downwards along the range, other than the slight skew noted previously:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required