WSFACTOR Subcommand (GLM: Repeated Measures command)

WSFACTOR names the within-subjects factors, specifies the number of levels for each, and specifies the contrast for each.

  • Presence of the WSFACTOR subcommand implies that the repeated measures model is being used.
  • Mauchly’s test of sphericity is automatically performed when WSFACTOR is specified.
  • Names and number levels for the within-subjects factors are specified on the WSFACTOR subcommand. Factor names must not duplicate any of the dependent variables, factors, or covariates named on the GLM variable list. A type of contrast can also be specified for each within-subjects factor in order to perform comparisons among its levels. This contrast amounts to a transformation on the dependent variables.
  • If there are more than one within-subjects factors, they must be named in the order corresponding to the order of the dependent variables on the GLM variable list. GLM varies the levels of the last-named within-subjects factor most rapidly when assigning dependent variables to within-subjects cells (see the example below).
  • The number of cells in the within-subjects design is the product of the number of levels for all within-subjects factors.
  • Levels of the factors must be represented in the data by the dependent variables named on the GLM variable list.
  • The number of levels of each factor must be at least two. Enter an integer equal to or greater than 2 after each factor to indicate how many levels the factor has. Optionally, you can enclose the number of levels in parentheses.
  • Enter only the number of levels for within-subjects factors, not a range of values.
  • If more than one WSFACTOR subcommand is specified, only the last one is in effect.