FAQ/Interaction - CBU statistics Wiki

Please enter your password of your account at the remote wiki below.
/!\ You should trust both wikis because the password could be read by the particular administrators.

Clear message
location: FAQ / Interaction

SIMPLE MAIN EFFECTS

Click here

to find out how to use EMMEANS (Estimated Marginal Means) in GLM to test simple main effects. You can additionally also add ADJ(BONFERRONI) or ADJ(SIDAK) to the /EMMEANS subcommand line to correct for multiple t-tests and use /EMMEANS for designs involving only between subjects factors (see some examples here and in Field, (2005), in Chapter 11 on Repeated Measures designs.) /EMMEANS correct for the number of comparisons within each level of an effect but not across levels e.g. for 3 trials and 2 groups in a trial by group interaction the only correction performed would be for comparing trials within each group with the correction for the three pairwise trial comparisons made within each group. Since there are only 2 groups there would be no adjustment comparing groups at each trial as there is only one pairwise comparison (the group difference) for each trial.

/EMMEANS can also compare groups adjusted for covariates in repeated measures, For example the below syntax compares the average change over time in each of two groups adjusted for age differences between the groups.

GLM time1 time2 BY group WITH age
  /WSFACTOR=time 2 Polynomial 
  /METHOD=SSTYPE(3)
  /EMMEANS=TABLES(group) WITH(age=MEAN)COMPARE ADJ(SIDAK)
 /EMMEANS TABLES(time*group) WITH(age=MEAN)COMPARE(factor1) 
  /CRITERIA=ALPHA(.05)
  /WSDESIGN= time
  /DESIGN= group age group*age.

Simple effects involving between subject factors can also be specified in SPSS using the /LMATRIX subcommand and the /MMATRIX subcommand for within subjects factors or combinations of the two. See also.

MANOVA can also be used to compare pairs of within subjects factor levels in each group separately using the overall Mean Square Error which was used for testing the original interaction which was computed using all the groups. For example to decompose the Time x A interaction separately into the differences in times in groups 1 and 2 we can use the below. Further details are available here.

MANOVA V1 V2 BY GROUP(1,2)
 /WSFACTORS=TIME(2)
 /DESIGN=MWITHIN GROUP(1), MWITHIN GROUP(2).

See David Nichols's illustrations using the above SPSS syntax for explaining all types of interactions here. There are also illustrations of simple effects in the ANOVA Grad talk and some SPSS syntax here for two-way interactions.

The multcompare procedure in MATLAB also works out and compares pairs of estimated marginal means using the Tukey-Kramer test.

Reference

Field, A (2005). Discovering statistics using SPSS. Second Edition. Sage:London.

Return to Statistics FAQ page

Return to Statistics main page

Return to CBU main page

These pages are maintained by Ian Nimmo-Smith and Peter Watson

[Last updated on 14 April, 2004]