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.

394 CTABLES<br />

CATEGORIES Subcommand<br />

The CATEGORIES subcommand controls the order of categories in the rows and columns of<br />

the table, the showing and hiding of ordinary and user-missing values, and the computation<br />

of totals and subtotals.<br />

/CATEGORIES VARIABLES= varlist<br />

{ [value, value, value...] }<br />

{ ORDER= {A} KEY= {VALUE } MISSING= {EXCLUDE} }<br />

{D} {LABEL } {INCLUDE}<br />

{summary(varname)}<br />

TOTAL= {NO } LABEL= "label" POSITION= {AFTER } EMPTY= {INCLUDE}<br />

{YES } {BEFORE} {EXCLUDE}<br />

The minimum specification is a variable list and one of the following: a category specification,<br />

TOTAL specification, or EMPTY specification. The variable list can be a list of variables<br />

or the keyword ALL, which refers to all category variables in the table expression. ALL cannot<br />

be used with the explicit category list.<br />

Explicit Category Specification<br />

The explicit category specification is a bracketed list of data values or value ranges in the<br />

order in which they are to be displayed in the table. Values not included in the list are excluded<br />

from the table. This form allows for subtotals and showing or hiding of specific values (both<br />

ordinary and user-missing).<br />

• The list can include both ordinary and user-missing values but not the system-missing<br />

value (.).<br />

• Values are optionally separated by commas.<br />

• String and date values must be quoted. Date values must be consistent with the variable’s<br />

print format.<br />

• The LO, THRU, and HI keywords can be used in the value list to refer to a range of<br />

categories. LO and HI can be used only as part of a range specification.<br />

• The MISSING keyword can be used to refer to all user-missing values.<br />

• The OTHERNM keyword can be used to refer to all nonmissing values not explicitly<br />

named in the list. It can go anywhere within the list. The values to which it refers appear<br />

in ascending order.<br />

• If a value is repeated in the list, the last instance is honored. Thus, for a variable RATING<br />

with integer values 1 through 5, the following specifications are equal:<br />

/CATEGORIES VARIABLES = RATING [1,2,4,5,3]<br />

/CATEGORIES VARIABLES = RATING [1 THRU 5,3]<br />

/CATEGORIES VARIABLES = RATING [OTHERNM,3]<br />

• For a multiple dichotomy set, you can order the variables in the set by using the names of<br />

the variables in the set. The variable names are not enclosed in quotes.

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

Saved successfully!

Ooh no, something went wrong!