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 />

Example<br />

ANOVA 129<br />

ANOVA VARIABLES=PRESTIGE BY REGION(1,9) SEX, RACE(1,2)<br />

/MAXORDERS=2<br />

/STATISTICS=MEAN.<br />

• VARIABLES specifies a three-way analysis of variance—PRESTIGE by REGION, SEX, and<br />

RACE.<br />

• The variables SEX and RACE each have two categories, with values 1 and 2 included in<br />

the analysis. REGION has nine categories, valued 1 through 9.<br />

• MAXORDERS examines interaction effects up to and including the second order. All threeway<br />

interaction terms are pooled into the error sum of squares.<br />

• STATISTICS requests a table of means of PRESTIGE within the combined categories of<br />

REGION, SEX, and RACE.<br />

ANOVA VARIABLES=PRESTIGE BY REGION(1,9) SEX,RACE(1,2)<br />

/RINCOME BY SEX,RACE(1,2).<br />

• ANOVA specifies a three-way analysis of variance of PRESTIGE by REGION, SEX, and<br />

RACE, and a two-way analysis of variance of RINCOME by SEX and RACE.<br />

VARIABLES Subcommand<br />

VARIABLES specifies the analysis list. The actual keyword VARIABLES can be omitted.<br />

• More than one design can be specified on the same ANOVA command by separating the<br />

analysis lists with a slash.<br />

• Variables named before keyword BY are dependent variables. Value ranges are not<br />

specified for dependent variables.<br />

• Variables named after BY are factor (independent) variables.<br />

• Every factor variable must have a value range indicating its minimum and maximum values.<br />

The values must be separated by a space or a comma and enclosed in parentheses.<br />

• Factor variables must have integer values. Noninteger values for factors are truncated.<br />

• Cases with values outside the range specified for a factor are excluded from the analysis.<br />

• If two or more factors have the same value range, you can specify the value range once<br />

following the last factor to which it applies. You can specify a single range that<br />

encompasses the ranges of all factors on the list. For example, if you have two factors,<br />

one with values 1 and 2 and the other with values 1 through 4, you can specify the range<br />

for both as 1,4. However, this may reduce performance and cause memory problems if<br />

the specified range is larger than some of the actual ranges.<br />

• Variables named after the keyword WITH are covariates.<br />

• Each analysis list can include only one BY and one WITH keyword.

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

Saved successfully!

Ooh no, something went wrong!