FAQ/aovmtb - CBU statistics Wiki

Revision 3 as of 2011-04-14 16:02:28

Clear message
location: FAQ / aovmtb

How do I perform a repeated measures ANOVA using MINITAB?

Mixed (Between and within factor ANOVA) can be fitted in Minitab using the GLM procedure. Details are [attachment:rmmtb.pdf in this pdf file.] The trick is to declare subjects as a random factor and a nested term involving subjects of form subjects(A) where A is a between subjects factor. In each case the data is entered in 'long format' with separate columns for all the factors including between subject factors, within subject factors and subjects.

An analogous approach works in SPSS using UNIANOVA. For the attached MINITAB examples we need for a repeated measures ANOVA with two within subject factors, wit1 and wit2, and a subject factor, sub, the following code in SPSS.

UNIANOVA
  y  BY wit1 wit2 sub
  /RANDOM = sub
  /METHOD = SSTYPE(3)
  /INTERCEPT = INCLUDE
  /CRITERIA = ALPHA(.05)
  /DESIGN = wit1 wit2 sub wit1*wit2 wit1*sub wit2*sub wit1*wit2*sub .

For one repeated measures factor, wit1, one between subjects factor, bet1, and a subjects factor, sub, we run the syntax below.

UNIANOVA
  y  BY bet wit1 sub
  /RANDOM = sub
  /METHOD = SSTYPE(3)
  /INTERCEPT = INCLUDE
  /CRITERIA = ALPHA(.05)
  /DESIGN = BET wit1 sub(bet) bet*wit1.

More generally for two or more between subjects factors the nesting term for subjects is nested within all combinations of the between subjects factors so for example for an anova for two between subject factors, bet and bet2, and a subjects factor, sub, the nested term is sub(bet*bet2) as below:

{{{
UNIANOVA
  y  BY bet bet2 sub
  /RANDOM = sub
  /METHOD = SSTYPE(3)
  /INTERCEPT = INCLUDE
  /CRITERIA = ALPHA(.05)
  /DESIGN = BET bet2 sub(bet*bet2) bet*bet2.