

Here is the main and interaction effects: fixed = time order proc order*proc order*proc*time We can visualize this in two-way tables split by levels of order. The levels within order and time will be “weighted” equally at 1/2. Since the contrasts is only between levels of proc and not order or time, the levels within order and time are weighted equally.

The order*proc*time interaction is coded as o1p1t1 o1p1t2 o1p2t1 o1p2t2 o2p1t1 o2p1t2 o2p2t1 o2p2t2. The coding scheme for the interaction of proc with time is the following: Since time in not contrast coded, there will be assigned equal weights for the two levels of time, namely, 1/2 and 1/2. Since proc comes before time, the interaction between proc*time would be p1t1 p1t2 p2t1 p2t2. In this example we will examine the same contrast above, namely, a contrast between the levels of proc, but use a model that includes the interaction of proc and time as well as the three-way interaction of order*proc*time. Three-Way Model including interaction of proc * time and the three-way interaction Here are the results for significant effects,īelow we see that the contrast of survey1 - game1 is significant when interacting with averaged levels of order: repeated = time | subject(id) covtype(ar1) Here is the SPSS syntax for the model: mixed score by order proc time Since order comes before proc, our contrast coding for the interaction would be the following: Recall that the order of the factors is determined in the mixed command in the SPSS syntax. Any time that the higher-order term includes the contrast, for example, the interaction order * proc** includes the contrast for proc, we need to include the contrast coding of the main effect, namely, the difference between game1 and survey1 in the variable proc. In this model we are exploring the contrast of absolute and ambiguous proclamation when taking into account the interaction between averaged levels of game1 and survey1.
THREEWAY ANOVA SPSS CODE CODE
Since we are not contrasting the levels of ‘order’, we will code both levels game1 and survey1 as of equal weight, namely, o1 =. Let’s start with the contrast of the two-levels of ‘proc’ (i.e., absolute and ambiguous) and code it as p1 = -.5 and p2 =.
