Examples (MEANS command)

Specifying a Range of Dependent Variables

MEANS TABLES=V1 TO V5 BY GROUP
   /STATISTICS=ANOVA.
  • TABLES specifies that V1 through V5 are the dependent variables. GROUP is the control variable.
  • Assuming that variables V2, V3, and V4 lie between V1 and V5 in the active dataset, five tables are produced: V1 by GROUP, V2 by GROUP, V3 by GROUP, and so on.
  • STATISTICS requests one-way analysis-of-variance tables of V1 through V5 by GROUP.

Creating Analyses for Two Separate Sets of Dependent Variables

MEANS VARA BY VARB BY VARC/V1 V2 BY V3 V4 BY V5.
  • This command contains two TABLES subcommands that omit the optional TABLES keyword.
  • The first table list produces a Group Statistics table for VARA within groups defined by each combination of values as well as the totals of VARB and VARC.
  • The second table list produces a Group Statistics table displaying statistics for V1 by V3 by V5, V1 by V4 by V5, V2 by V3 by V5, and V2 by V4 by V5.