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.

378 CTABLES<br />

• You can create multiple response sets with the MRSETS command and use them like<br />

ordinary categorical variables in a table expression. You can control the percentage base<br />

by choosing an appropriate summary function, and you can control with the MRSETS subcommand<br />

whether duplicate responses from a single respondent are counted.<br />

• You can assign totals to categorical variables at different nesting levels to create subtable<br />

and table totals, and you can assign subtotals across subsets of the values of a variable.<br />

See the CATEGORIES subcommand.<br />

• You can determine on a per-variable basis which categories to display in the table, including<br />

whether to display missing values and empty categories for which variable labels exist.<br />

You can also sort categories by name, label, or the value of a summary function. See the<br />

CATEGORIES subcommand.<br />

• You can specify whether to show or hide summary and category labels and where to<br />

position the labels. For variable labels, you can specify whether to show labels, names,<br />

both, or neither. See the SLABELS, CLABELS, and VLABELS subcommands.<br />

• You can request chi-square tests and pairwise comparisons of column proportions and<br />

means. See the SIGTEST and COMPARETEST subcommands.<br />

• You can assign custom titles and captions (see the TITLES subcommand) and control what<br />

displays for empty cells and those for which a summary function cannot be computed. See<br />

the FORMAT subcommand.<br />

• CTABLES ignores SPLIT FILE requests if layered splits (compare groups in the graphical<br />

user interface) are requested. You can compare groups by using the split variables at the<br />

highest nesting level for row variables. See the TABLE subcommand for nesting variables.<br />

<strong>Syntax</strong> Conventions<br />

• The basic specification is a TABLE subcommand with at least one variable in one<br />

dimension. Multiple TABLE subcommands can be included in one CTABLES command.<br />

• The global subcommands FORMAT, VLABELS, MRSETS, and SMISSING must precede the<br />

first TABLE subcommand and can be named in any order.<br />

• The local subcommands SLABELS, CLABELS, CATEGORIES, TITLES, SIGTEST, and<br />

COMPARETEST follow the TABLE subcommand in any order and refer to the immediately<br />

preceding table expression.<br />

• In general, if subcommands are repeated, their specifications are merged. The last value<br />

of each specified attribute is honored.<br />

• Equals signs shown in the syntax charts are required.<br />

• Square brackets shown in the syntax charts are required.<br />

• All keywords except summary function names, attribute values, and explicit category list<br />

keywords can be truncated to as few as three characters. Function names must be spelled<br />

in full.<br />

• The slash before all subcommands, including the first, is required.

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

Saved successfully!

Ooh no, something went wrong!