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.

CROSSTABS 321<br />

• VARIABLES names two variables, FEAR and MOBILE16. Values 1 and 2 for FEAR are used<br />

in the tables, and values 1, 2, and 3 are used for the variable MOBILE16.<br />

• TABLES specifies a Crosstabulation table with two rows (values 1 and 2 for FEAR) and<br />

three columns (values 1, 2, and 3 for MOBILE16). FEAR and MOBILE16 can be named on<br />

TABLES because they were named on the previous VARIABLES subcommand.<br />

Example<br />

CROSSTABS VARIABLES=FEAR SEX RACE DEGREE (1,2)<br />

/TABLES=FEAR BY SEX BY RACE BY DEGREE.<br />

• This command produces four subtables. The first subtable crosstabulates FEAR by SEX,<br />

controlling for the first value of RACE and the first value of DEGREE; the second subtable<br />

controls for the second value of RACE and the first value of DEGREE; the third subtable<br />

controls for the first value of RACE and the second value of DEGREE; and the fourth subtable<br />

controls for the second value of RACE and the second value of DEGREE.<br />

CELLS Subcommand<br />

By default, CROSSTABS displays only the number of cases in each cell of the Crosstabulation<br />

table. Use CELLS to display row, column, or total percentages, expected counts, or residuals.<br />

These are calculated separately for each Crosstabulation table or subtable.<br />

• CELLS specified without keywords displays cell counts plus row, column, and total<br />

percentages for each cell.<br />

• If CELLS is specified with keywords, CROSSTABS displays only the requested cell<br />

information.<br />

• Scientific notation is used for cell contents when necessary.<br />

COUNT Observed cell counts. This is the default if CELLS is omitted.<br />

ROW Row percentages. The number of cases in each cell in a row is expressed as a<br />

percentage of all cases in that row.<br />

COLUMN Column percentages. The number of cases in each cell in a column is<br />

expressed as a percentage of all cases in that column.<br />

TOTAL Two-way table total percentages. The number of cases in each cell of a<br />

subtable is expressed as a percentage of all cases in that subtable.<br />

EXPECTED Expected counts. Expected counts are the number of cases expected in each<br />

cell if the two variables in the subtable are statistically independent.<br />

RESID Residuals. Residuals are the difference between the observed and expected<br />

cell counts.<br />

SRESID Standardized residuals (Haberman, 1978).<br />

ASRESID Adjusted standardized residuals (Haberman, 1978).

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

Saved successfully!

Ooh no, something went wrong!