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.

Example<br />

OLAP CUBES 1109<br />

OLAP CUBES<br />

sales95 sales96 BY region<br />

/CELLS=SUM NPCT<br />

/CREATE VAC VPC (sales95 sales96).<br />

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

• The difference calculated will be sales96 - sales95.<br />

• The percentage difference calculated will be (sales96 - sales95)/sales95.<br />

• The two variables, sales95 and sales96 are also specified as summary variables at the<br />

beginning of the OLAP CUBES command.<br />

Example<br />

OLAP CUBES<br />

sales96 BY region<br />

/CELLS=SUM NPCT<br />

/CREATE DEFAULT ’West-East GPC’ DEFAULT ’West-Central % Difference’<br />

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

• Four labels are specified, corresponding to the four difference categories that will be<br />

created: arithmetic and percentage differences between regions 3 and 1 and between<br />

regions 3 and 2.<br />

• The two DEFAULT labels will display the defined value labels or values if there aren’t any<br />

value labels for the two arithmetic (GAC) difference categories.

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

Saved successfully!

Ooh no, something went wrong!