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.

1362 REGRESSION<br />

• COMPUTE creates the variable WEIGHT as a transformation of P.<br />

• The second REGRESSION procedure performs a weighted regression analysis on the<br />

same set of variables using WEIGHT as the weighting variable.<br />

Example<br />

REGRESSION VAR=GRADE GPA STARTLEV TREATMNT<br />

/REGWGT=WEIGHT<br />

/DEP=GRADE<br />

/METHOD=ENTER<br />

/SAVE RESID(RGRADE).<br />

COMPUTE WRGRADE=RGRADE * SQRT(WEIGHT).<br />

• This example illustrates the use of COMPUTE with SAVE to weight residuals.<br />

• REGRESSION performs a weighted regression analysis of GRADE on GPA, STARTLEV,<br />

and TREATMNT, using WEIGHT as the weighting variable.<br />

• SAVE saves the residuals as RGRADE (see the SAVE subcommand on p. 1374). These residuals<br />

are not weighted.<br />

• COMPUTE creates variable WRGRADE, which contains the weighted residuals.<br />

DESCRIPTIVES Subcommand<br />

DESCRIPTIVES requests the display of correlations and descriptive statistics. By default,<br />

descriptive statistics are not displayed.<br />

• The minimum specification is simply the subcommand keyword DESCRIPTIVES, which<br />

obtains MEAN, STDDEV, and CORR.<br />

• If DESCRIPTIVES is specified with keywords, only those statistics specifically requested<br />

are displayed.<br />

• Descriptive statistics are displayed only once for all variables named or implied on<br />

VARIABLES.<br />

• Descriptive statistics are based on all valid cases for each variable if PAIRWISE or<br />

MEANSUBSTITUTION has been specified on MISSING. Otherwise, only cases with valid<br />

values for all variables named or implied on the VARIABLES subcommand are included<br />

in the calculation of descriptive statistics.<br />

• If regression through the origin has been requested (subcommand ORIGIN), statistics are<br />

computed as if the mean were 0.<br />

NONE No descriptive statistics. This is the default if the subcommand is omitted.<br />

DEFAULTS MEAN, STDDEV, and CORR. This is the same as specifying DESCRIPTIVES<br />

without specifications.<br />

MEAN Display variable means in the Descriptive Statistics table.<br />

STDDEV Display variable standard deviations in the Descriptive Statistics table.<br />

VARIANCE Display variable variances in the Descriptive Statistics table.<br />

CORR Display Pearson correlation coefficients in the Correlations table.

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

Saved successfully!

Ooh no, something went wrong!