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.

380 CTABLES<br />

Example<br />

CTABLES /TABLE (CONFINAN + CONBUS + CONBUS + CONEDUC<br />

+ CONPRESS + CONMEDIC)[COUNT ROWPCT]<br />

/CLABELS ROWLABELS=OPPOSITE.<br />

Confidence in banks &<br />

financial institutions<br />

Confidence in major<br />

companies<br />

Confidence in major<br />

companies<br />

Confidence in education<br />

Confidence in press<br />

Confidence in medicine<br />

• The six confidence variables all have the same categories with the same value labels for<br />

each.<br />

• The CLABELS subcommand moves the category labels to the columns.<br />

TABLE Subcommand<br />

The TABLE subcommand specifies the structure of the table, including the variables and<br />

summary functions that define each dimension. It has the general form<br />

/TABLE rows BY columns BY layers<br />

The minimum specification for a row, column, or layer is a variable name. You can specify<br />

one or more dimensions.<br />

Variable Types<br />

A great deal<br />

Count Row %<br />

The variables used in a table expression can be category variables, scale variables, or<br />

multiple response sets. Multiple response sets are defined by the MRSETS command in the<br />

SPSS Base and always begin with a $. Custom Tables uses the measurement level in the<br />

dictionary for the active data file to identify category and scale variables. You can override<br />

the default variable type for numeric variables by placing [C] or [S] after the variable name.<br />

Thus, to treat the category variable HAPPY as a scale variable and obtain a mean, you would<br />

specify<br />

/TABLE HAPPY [S].<br />

Category Variables and Multiple Response Sets<br />

Only some<br />

Count Row %<br />

Hardly any<br />

Count Row %<br />

490 26.3% 1068 57.3% 306 16.4%<br />

500 27.5% 1078 59.2% 243 13.3%<br />

500 27.5% 1078 59.2% 243 13.3%<br />

511 27.2% 1055 56.1% 315 16.7%<br />

176 9.5% 878 47.2% 808 43.4%<br />

844 45.0% 864 46.1% 167 8.9%<br />

Category variables define one cell per value. See the CATEGORIES subcommand for<br />

ways of controlling how categories are displayed. Multiple response sets also define one<br />

cell per value.

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

Saved successfully!

Ooh no, something went wrong!