StatLabStudent EditionUser guideGalleryFeaturesAbout

Regression residual plots

Draws the four standard checks of a linear regression: standardized residuals against standardized predicted values, a histogram and a normal P-P plot of the residuals, and studentized residuals against leverage (with Cook’s distance).

Menu: Graphs → More charts → Regression residual plots…

When should I use it?

What are the assumptions?

How do I run it in StatLab?

  1. Choose the dependent variable and predictors.

How do I read the output?

OutputMeaning
ZRESID vs ZPREDShould be a shapeless cloud around 0; a funnel means unequal variance, a curve means non-linearity.
Leverage plotLabelled cases have large influence (Cook’s D above 4/N).

Worked example

On the practice survey dataset (File → Sample dataset), this command — which the dialog's Paste button also produces — runs the procedure:

PROC vizResiduals /y=score /vars=(age pre).

Computed by StatLab's validated procedure code when this page was built. The example only illustrates the steps; choose variables that fit your own research question.

What are common mistakes?

Open StatLab   All guide topics