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.

688 GRAPH<br />

Aggregation functions:<br />

Two groups of aggregation functions are available: count functions and summary functions.<br />

Count functions:<br />

COUNT Frequency of cases in each category.<br />

PCT Frequency of cases in each category expressed as a percentage of the whole.<br />

CUPCT Cumulative percentage sorted by category value.<br />

CUFREQ Cumulative frequency sorted by category value.<br />

• Count functions yield the count or percentage of valid cases within categories determined<br />

by one or more BY variables, as in<br />

GRAPH /BAR (SIMPLE) = PCT BY REGION.<br />

• Count functions do not have any arguments.<br />

• You can omit the keyword COUNT and subsequent keyword BY and specify just a variable,<br />

as in<br />

GRAPH /BAR = DEPT.<br />

This command is interpreted as<br />

GRAPH /BAR = COUNT BY DEPT.<br />

Summary functions:<br />

MINIMUM Minimum value of the variable.<br />

MAXIMUM Maximum value of the variable.<br />

N Number of cases for which the variable has a nonmissing value.<br />

SUM Sum of the values of the variable.<br />

CUSUM Sum of the summary variable accumulated across values of the category<br />

variable.<br />

MEAN Mean.<br />

STDDEV Standard deviation.<br />

VARIANCE Variance.<br />

MEDIAN Median.<br />

GMEDIAN Group median.<br />

MODE Mode.<br />

PTILE(x) Xth percentile value of the variable. X must be greater than 0 and less than 100.<br />

PLT(x) Percentage of cases for which the value of the variable is less than x.<br />

PGT(x) Percentage of cases for which the value of the variable is greater than x.<br />

NLT(x) Number of cases for which the value of the variable is less than x.

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

Saved successfully!

Ooh no, something went wrong!