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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1374 REGRESSION: Residuals<br />

Example<br />

REGRESSION DEPENDENT=Y<br />

/METHOD=ENTER X1 X2<br />

/OUTFILE CORB (covx1x2y.sav).<br />

• The OUTFILE subcommand saves the parameter correlation matrix, and the parameter<br />

estimates, standard errors, significance values and residual degrees of freedom for the<br />

constant term, X1 and X2.<br />

SAVE Subcommand<br />

Use SAVE to add one or more residual or fit variables to the working data file.<br />

• The specification on SAVE is one or more of the temporary variable types listed on<br />

pp. 1368–1369, each followed by an optional name in parentheses for the new variable.<br />

• New variable names must be unique.<br />

• If new names are not specified, REGRESSION generates a rootname using a shortened<br />

form of the temporary variable name with a suffix to identify its creation sequence.<br />

• If you specify DFBETA or SDBETA on the SAVE subcommand, the number of new variables<br />

saved is the total number of variables in the equation.<br />

FITS Save all influence statistics. FITS saves DFFIT, SDFIT, DFBETA, SDBETA, and<br />

COVRATIO. You cannot specify new variable names when using this keyword.<br />

Default names are generated.<br />

Example<br />

/SAVE=PRED(PREDVAL) RESID(RESIDUAL) COOK(CDISTANC)<br />

• This subcommand adds three variables to the end of the working data file: PREDVAL,<br />

containing the unstandardized predicted value for each case; RESIDUAL, containing the<br />

unstandardized residual; and CDISTANC, containing Cook’s distance.<br />

Example<br />

/SAVE=PRED RESID<br />

• This subcommand adds two variables named PRE_1 and RES_1 to the end of the working<br />

data file.<br />

Example<br />

REGRESSION DEPENDENT=Y<br />

/METHOD=ENTER X1 X2<br />

/SAVE DFBETA(DFBVAR).<br />

• The SAVE subcommand creates and saves three new variables with the names DFBVAR0,<br />

DFBVAR1, and DFBVAR2.

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

Saved successfully!

Ooh no, something went wrong!