Example (REGRESSION command)

REGRESSION MATRIX IN('/data/pay_data.sav') OUT(*)
 /VARIABLES=AGE,STARTPAY,YRS_JOB,SALARY
 /DEPENDENT=SALARY
 /METHOD=STEP.
  • MATRIX IN reads the matrix data file pay_data.sav.
  • A stepwise regression analysis of SALARY is performed using AGE, STARTPAY, and YRS_JOB.
  • MATRIX OUT replaces the active dataset with the matrix data file that was previously stored in the pay_data.sav file.