Diff for "FAQ/aovmtb" - CBU statistics Wiki
location: Diff for "FAQ/aovmtb"
Differences between revisions 4 and 5
Revision 4 as of 2011-04-14 16:02:44
Size: 1745
Editor: PeterWatson
Comment:
Revision 5 as of 2011-04-19 15:42:54
Size: 2297
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 40: Line 40:

A useful consequence of formulating a repeated measures design using a between subjects ANOVA procedure is that a range of post-hocs tests on a within subjects factor can now be outputted (this is not possible using the GLM repeated measures procedure). The below syntax uses Tukey's test to compare four groups comprising the within subjects factor, WIT3.

UNIANOVA
  y BY wit3 bet sub
  /RANDOM = sub
  /METHOD = SSTYPE(3)
  /INTERCEPT = INCLUDE
  /CRITERIA = ALPHA(.05)
  /POSTHOC = WIT3 (SNK)
  /DESIGN = wit3 bet sub(bet) bet*wit3.

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.

A useful consequence of formulating a repeated measures design using a between subjects ANOVA procedure is that a range of post-hocs tests on a within subjects factor can now be outputted (this is not possible using the GLM repeated measures procedure). The below syntax uses Tukey's test to compare four groups comprising the within subjects factor, WIT3.

UNIANOVA

  • y BY wit3 bet sub /RANDOM = sub /METHOD = SSTYPE(3) /INTERCEPT = INCLUDE /CRITERIA = ALPHA(.05) /POSTHOC = WIT3 (SNK) /DESIGN = wit3 bet sub(bet) bet*wit3.

None: FAQ/aovmtb (last edited 2013-03-08 10:17:09 by localhost)