27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1368 REGRESSION: Residuals<br />

(RESIDUALS subcommand), and partial regression plots (PARTIALPLOT subcommand). Any of<br />

the residuals subcommands can be specified to obtain descriptive statistics for the predicted<br />

values, residuals, and their standardized versions. Any of the temporary variables can be added<br />

to the working data file with the SAVE subcommand.<br />

Basic Specification<br />

All residuals analysis subcommands are optional. Most have defaults that can be requested by<br />

including the subcommand without any further specifications. These defaults are described in<br />

the discussion of each subcommand below.<br />

Subcommand Order<br />

• The residuals subcommands RESIDUALS, CASEWISE, SCATTERPLOT, and PARTIALPLOT<br />

follow the last METHOD subcommand of any equation for which residuals analysis is requested.<br />

Statistics are based on this final equation.<br />

• Residuals subcommands can be specified in any order. All residuals subcommands must<br />

follow the DEPENDENT and METHOD subcommands.<br />

Operations<br />

• Residuals subcommands affect all equations.<br />

• The temporary variables PRED (unstandardized predicted value), ZPRED (standardized<br />

predicted value), RESID (unstandardized residual), and ZRESID (standardized residual)<br />

are calculated and descriptive statistics are displayed whenever any residuals subcommand<br />

is specified. If any of the other temporary variables are referred to on the command,<br />

they are also calculated.<br />

• Predicted values and statistics based on predicted values are calculated for every observation<br />

that has valid values for all variables in the equation. Residuals and statistics<br />

based on residuals are calculated for all observations that have a valid predicted value<br />

and a valid value for the dependent variable. The missing-values option therefore affects<br />

the calculation of residuals and predicted values.<br />

• No residuals or predictors are generated for cases deleted from the working data file with<br />

SELECT IF, a temporary SELECT IF, or SAMPLE.<br />

• All variables are standardized before plotting. If the unstandardized version of a variable<br />

is requested, the standardized version is plotted.<br />

• Residuals processing is not available when the working data file is a matrix file or is replaced<br />

by a matrix file with MATRIX OUT(*) on REGRESSION. If RESIDUALS, CASEWISE,<br />

SCATTERPLOT, PARTIALPLOT, or SAVE are used when MATRIX IN(*) or MATRIX OUT(*) is<br />

specified, the REGRESSION command is not executed.<br />

For each analysis, REGRESSION can calculate the following types of temporary variables:<br />

PRED Unstandardized predicted values.<br />

RESID Unstandardized residuals.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!