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.

1108 OLAP CUBES<br />

The percentage difference calculated is the summary statistic value for<br />

the second category specified minus the summary statistic value for<br />

the first category specified, divided by the summary statistic value for<br />

the first category specified: (cat2 – cat1)/cat1.<br />

VAC(svar1 svar2) Arithmetic difference (change) in summary statistics between each<br />

pair of specified summary variables. Each pair of variables must be<br />

enclosed in parentheses, and all specified variables must be specified<br />

as summary variables at the beginning of the OLAP CUBES command.<br />

The difference calculated is the summary statistic value for the second<br />

variable specified minus the summary statistic value for the first variable<br />

specified: svar2 – svar1.<br />

VPC(svar1 svar2) Percentage difference (change) in summary statistics between each<br />

pair of specified summary variables. Each pair of variables must be<br />

enclosed in parentheses, and all specified variables must be specified<br />

as summary variables at the beginning of the OLAP CUBES command.<br />

The percentage difference calculated is the summary statistic value for<br />

the second variable specified minus the summary statistic value for the<br />

first variable specified: (svar2 – svar1)/svar1.<br />

’category label’ Optional label for each difference category created. These labels must<br />

be the first specification in the CREATE subcommand. Each label must<br />

be enclosed in single or double quotation marks. If no labels are specified,<br />

defined value or variable labels are used. If no labels are defined,<br />

data values or variable names are displayed. If multiple differences are<br />

created, the order of the labels corresponds to the order the differences<br />

are specified. To mix custom labels with default labels, use the<br />

keyword DEFAULT for the difference categories without custom<br />

labels.<br />

Both arithmetic and percentage differences can be specified in the same command, but you<br />

cannot specify both grouping variable differences (GAC/GPC) and summary variable differences<br />

(VAC/VPC) in the same command.<br />

Example<br />

OLAP CUBES<br />

sales96 BY region<br />

/CELLS=SUM NPCT<br />

/CREATE GAC GPC (region (1 3) (2 3)).<br />

• Both the arithmetic (GAC) and percentage (GPC) differences will be calculated.<br />

• Differences will be calculated for two different pairs of categories of the grouping variable<br />

region.<br />

• The grouping variable specified in the CREATE subcommand, region, is also specified as<br />

a grouping variable at the beginningof the OLAP CUBES command.

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

Saved successfully!

Ooh no, something went wrong!