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.

1424 REPORT<br />

means of all three variables. The third line displays the number of valid cases for XVAR<br />

in the report column for XVAR.<br />

• Every time the value of AVAR changes within each value of BVAR, the three summary<br />

lines requested for BVAR are displayed. These summary lines are based on cases with the<br />

current values of BVAR and AVAR.<br />

Example<br />

SORT CASES BY DEPT.<br />

REPORT FORMAT=AUTOMATIC<br />

/VARIABLES=WAGE BONUS TENURE<br />

/BREAK=DEPT (23)<br />

/SUMMARY=SUM(WAGE BONUS) MEAN(TENURE) ’Sum Income: Mean Tenure’.<br />

• SUMMARY defines a summary line consisting of the sums of WAGE and BONUS and the<br />

mean of TENURE. The result of each aggregate function is displayed in the report column<br />

of the variable for which the function is calculated.<br />

• A title is assigned to the summary line. A width of 23 is defined for the break column to<br />

accommodate the title for the summary line.<br />

Composite Functions<br />

Use composite functions to obtain statistics based on aggregated statistics, to place a summary<br />

statistic in a column other than that of the report variable for which it was calculated, or to<br />

manipulate variables not named on VARIABLES.<br />

• Composite functions can be computed for the following aggregate functions: VALIDN,<br />

SUM, MIN, MAX, MEAN, STDEV, VARIANCE, KURTOSIS, SKEWNESS, PGT, PLT, and PIN.<br />

Constants can also be arguments to composite functions.<br />

• When used within composite functions, aggregate functions can have only one variable<br />

as an argument.<br />

• A composite function and its arguments cannot be separated by other SUMMARY<br />

specifications.<br />

• The result of a composite function can be placed in any report column, including columns<br />

of dummy or string variables, by specifying a target column. To specify a target column,<br />

enclose the variable name of the column in parentheses after the composite function and its<br />

arguments. By default, the results of a composite function are placed in the report column<br />

of the first variable specified on the composite function that is also specified on VARIABLES.<br />

• The format for the result of a composite function can be specified in parentheses after the<br />

name of the column location, within the parentheses that enclose the column-location<br />

specification.<br />

DIVIDE(arg 1 arg 2 [factor]) Divide the first argument by the second and then multiply the result<br />

by the factor if it is specified.<br />

MULTIPLY(arg 1 ... arg n ) Multiply the arguments.<br />

PCT(arg 1 arg 2 ) The percentage of the first argument over the second.<br />

SUBTRACT(arg 1 arg 2 ) Subtract the second argument from the first.

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

Saved successfully!

Ooh no, something went wrong!