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.

1364 REGRESSION<br />

• If SELECT is specified, residuals and predicted values are calculated and reported separately<br />

for both selected and unselected cases by default (see the RESIDUALS subcommand<br />

on p. 1370).<br />

• Cases deleted from the working data file with SELECT IF, a temporary SELECT IF, or<br />

SAMPLE are not passed to REGRESSION and are not included among either the selected<br />

or unselected cases.<br />

• You should not use a variable from a temporary transformation as a selection variable,<br />

since REGRESSION reads the data file more than once if any residuals subcommands are<br />

specified. A variable created from a temporary transformation (with IF and COMPUTE<br />

statements) will disappear when the data are read a second time, and a variable that is the<br />

result of a temporary RECODE will change.<br />

Example<br />

REGRESSION SELECT SEX EQ ’M’<br />

/VARIABLES=AGE,STARTPAY,YRS_JOB,SALARY<br />

/DEPENDENT=SALARY<br />

/METHOD=STEP<br />

/RESIDUALS=NORMPROB.<br />

• Only cases with the value M for SEX are included in the correlation matrix calculated by<br />

REGRESSION.<br />

• Separate normal P_P plots are displayed for cases with SEX equal to M and for other<br />

cases (see the RESIDUALS subcommand on p. 1370).<br />

MATRIX Subcommand<br />

MATRIX reads and writes matrix data files. It can read files written by previous REGRESSION<br />

procedures or files written by other procedures such as CORRELATIONS. The matrix materials<br />

REGRESSION writes also include the mean, standard deviation, and number of cases<br />

used to compute each coefficient. This information immediately precedes the correlation<br />

matrix in the matrix file (see “Format of the Matrix Data File” on p. 1365).<br />

• Either IN or OUT and a matrix file in parentheses are required on MATRIX.<br />

• When used, MATRIX must be the first subcommand specified in a REGRESSION procedure.<br />

• ORIGIN and NOORIGIN affect the way the correlation matrix is built. If matrix materials<br />

are used as input to REGRESSION, the keyword that was in effect when the matrix was<br />

written should be in effect when that matrix is read.<br />

OUT (filename) Write a matrix data file. Specify either a filename or an asterisk, enclosed in<br />

parentheses. If you specify a filename, the file is stored on disk and can be<br />

retrieved at any time. If you specify an asterisk (*), the matrix data file replaces<br />

the working file but is not stored on disk unless you use SAVE or<br />

XSAVE.<br />

IN (filename) Read a matrix data file. If the matrix data file is the working data file, specify<br />

an asterisk (*) in parentheses. If the matrix data file is another file, specify<br />

the filename in parentheses. A matrix file read from an external file does not<br />

replace the working data file.

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

Saved successfully!

Ooh no, something went wrong!