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.

Basic Specification<br />

OLAP CUBES 1105<br />

The basic specification is the command name, OLAP CUBES, with a summary variable, the<br />

keyword BY, and one or more grouping variables.<br />

• The minimum specification is a summary variable, the keyword BY, and a grouping variable.<br />

• By default, OLAP CUBES displays a Case Processing Summary table showing the number<br />

and percentage of cases included, excluded, and their total, and a Layered Report showing<br />

means, standard deviations, sums, number of cases for each category, percentage of total<br />

N, and percentage of total sum.<br />

<strong>Syntax</strong> Rules<br />

• Both numeric and string variables can be specified. String variables can be short or long.<br />

Summary variables must be numeric.<br />

• String specifications for TITLE and FOOTNOTE cannot exceed 255 characters. Quotation<br />

marks or apostrophes are required. When the specification breaks on multiple lines,<br />

enclose each line in apostrophes or quotes and separate the specifications for each line by<br />

at least one blank. To specify line breaks in titles and footnotes, use the /n specification.<br />

• Each subcommand can be specified only once. Multiple use results in a warning, and the<br />

last specification is used.<br />

• When a variable is specified more than once, only the first occurrence is honored. The<br />

same variables specified after different BY keywords will result in an error.<br />

Limitations<br />

• Up to 10 BY keywords can be specified.<br />

Operations<br />

Example<br />

• The data are processed sequentially. It is not necessary to sort the cases before processing.<br />

If a BY keyword is used, the output is always sorted.<br />

• A Case Processing Summary table is always generated, showing the number and percentage<br />

of the cases included, excluded, and the total.<br />

• For each combination of grouping variables specified after different BY keywords, OLAP<br />

CUBES produces a group in the report.<br />

OLAP CUBES SALES BY REGION BY INDUSTRY<br />

/CELLS=MEAN MEDIAN SUM.<br />

• A Case Processing Summary table lists the number and percentage of cases included,<br />

excluded, and the total.

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

Saved successfully!

Ooh no, something went wrong!