Examples (ANOVA command)

ANOVA VARIABLES=PRESTIGE BY REGION(1,9) SEX, RACE(1,2)
 /MAXORDERS=2
 /STATISTICS=MEAN.
  • VARIABLES specifies a three-way analysis of variance—PRESTIGE by REGION, SEX, and RACE.
  • The variables SEX and RACE each have two categories, with values 1 and 2 included in the analysis. REGION has nine categories, valued 1 through 9.
  • MAXORDERS examines interaction effects up to and including the second order. All three-way interaction terms are pooled into the error sum of squares.
  • STATISTICS requests a table of means of PRESTIGE within the combined categories of REGION, SEX, and RACE.

Example: Specifying Multiple Analyses

ANOVA VARIABLES=PRESTIGE BY REGION(1,9) SEX,RACE(1,2)
  /RINCOME BY SEX,RACE(1,2).
  • ANOVA specifies a three-way analysis of variance of PRESTIGE by REGION, SEX, and RACE, and a two-way analysis of variance of RINCOME by SEX and RACE.