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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GRAPH 689<br />

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

PIN(x1,x2) Percentage of cases for which the value of the variable is greater than or<br />

equal to x1 and less than or equal to x2. x1 cannot exceed x2.<br />

NIN(x1,x2) Number of cases for which the value of the variable is greater than or equal<br />

to x1 and less than or equal to x2. x1 cannot exceed x2.<br />

• Summary functions are usually used with summary variables (variables that record continuous<br />

values, like age or expenses). To use a summary function, specify the name of one<br />

or more variables in parentheses after the name of the function, as in<br />

GRAPH /BAR = SUM(SALARY) BY DEPT.<br />

• You can specify multiple summary functions for more chart types. For example, the same<br />

function can be applied to a list of variables, as in<br />

GRAPH /BAR = SUM(SALARY BONUS BENEFIT) BY DEPT.<br />

This syntax is equivalent to<br />

GRAPH /BAR = SUM(SALARY) SUM(BONUS) SUM(BENEFIT) BY DEPT.<br />

Different functions can be applied to the same variable, as in<br />

GRAPH /BAR = MEAN(SALARY) MEDIAN(SALARY) BY DEPT.<br />

Different functions and variables can be combined, as in<br />

GRAPH /BAR = MIN(SALARY81) MAX(SALARY81)<br />

MIN(SALARY82) MAX(SALARY82) BY JOBCAT.<br />

The effect of multiple summary functions on the structure of the charts is illustrated under<br />

the discussion of specific chart types.<br />

Overview<br />

Options<br />

GRAPH generates a high-resolution chart by computing statistics from variables in the<br />

working data file and constructing the chart according to your specification. The chart can be<br />

a bar chart, pie chart, line chart, error bar chart, high-low-close histogram, scatterplot, or<br />

Pareto chart. The chart is displayed where high-resolution display is available and can be<br />

edited with a chart editor and saved as a chart file.<br />

Titles and Footnotes. You can specify a title, subtitle, and footnote for the chart using the<br />

TITLE, SUBTITLE, and FOOTNOTE subcommands.<br />

Chart Type. You can request a specific type of chart using the BAR, LINE, PIE, ERRORBAR,<br />

HILO, HISTOGRAM, SCATTERPLOT, or PARETO subcommand.<br />

Chart Content. You can specify an aggregated categorical chart using various aggregation<br />

functions or a nonaggregated categorical chart using the VALUE function (see pp. 687–689<br />

for a list of available functions).<br />

Templates. You can specify a template, using the TEMPLATE subcommand, to override the<br />

default chart attribute settings on your system.

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

Saved successfully!

Ooh no, something went wrong!