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.

Example<br />

EXAMINE VARIABLES=MIPERGAL BY MODEL,MODEL BY CYLINDERS.<br />

EXAMINE 521<br />

• MIPERGAL is the dependent variable. The cell specification follows the first BY keyword.<br />

Cases are subdivided based on values of MODEL and also based on the combination of<br />

values of MODEL and CYLINDERS.<br />

• Assuming that there are three values for MODEL and two values for CYLINDERS, this<br />

example produces a Descriptives table, a stem-and-leaf plot, and a boxplot for the total<br />

sample, a Descriptives table and a boxplot for each factor defined by the first BY<br />

(MIPERGAL by MODEL and MIPERGAL by MODEL by CYLINDERS), and a stem-and-leaf<br />

plot for each of the nine cells (three defined by MODEL and six defined by MODEL and<br />

CYLINDERS together).<br />

VARIABLES Subcommand<br />

VARIABLES specifies the dependent variables and the cells. The dependent variables are<br />

specified first, followed by the keyword BY and the variables that define the cells. Repeated<br />

models on the same EXAMINE are discarded.<br />

• To create cells defined by the combination of values of two or more factors, specify the<br />

factor names separated by the keyword BY.<br />

Caution. Large amounts of output can be produced if many cells are specified. If there are<br />

many factors or if the factors have many values, EXAMINE will produce a large number of<br />

separate analyses.<br />

Example<br />

EXAMINE VARIABLES=SALARY,YRSEDUC BY RACE,SEX,DEPT,RACE BY SEX.<br />

• SALARY and YRSEDUC are dependent variables.<br />

• Cells are formed first for the values of SALARY and YRSEDUC individually, and then each<br />

by values for RACE, SEX, DEPT, and the combination of RACE and SEX.<br />

• By default, EXAMINE produces Descriptives tables, stem-and-leaf plots, and boxplots.<br />

COMPARE Subcommand<br />

COMPARE controls how boxplots are displayed. This subcommand is most useful if there is<br />

more than one dependent variable and at least one factor in the design.<br />

GROUPS For each dependent variable, boxplots for all cells are displayed together.<br />

With this display, comparisons across cells for a single dependent variable<br />

are easily made. This is the default.<br />

VARIABLES For each cell, boxplots for all dependent variables are displayed together.<br />

With this display, comparisons of several dependent variables are easily made.<br />

This is useful in situations where the dependent variables are repeated measures<br />

of the same variable (see the following example) or have similar scales,<br />

or when the dependent variable has very different values for different cells, and<br />

plotting all cells on the same scale would cause information to be lost.

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

Saved successfully!

Ooh no, something went wrong!