Plotting Predicted Values and Residuals

Top  Previous  Next

How To... > Work with Statistical Objects > Build a Linear Model > Multiple Regression > Plotting Predicted Values and Residuals

Of course, you want to take a look at the residuals. Once you have a multiple regression model, this is easy.

1.With the model selected, choose Object | Inspect Linear Model.
2.Drag attributes from the Cases panel of this inspector to a graph.

_img170

 

Here’s a plot of residuals versus predicted values for the Airplanes data.

You can use this inspector to define new attributes in terms of the predicted values and residuals. You can also copy the formulas, especially the formula for the predicted value, and use them elsewhere. (Of course, the formulas won’t dynamically update.)

You can make a case table that includes the predicted values and residuals by first selecting the model object and making a new case table, or connect the model to an existing case table by dragging the model name from the upper-left corner of the model object to the case table.