Data from Table 14.2, page 299.
data list list / a b scores. begin data. 1 1 16 1 1 12 1 1 9 1 1 14 1 1 17 2 1 21 2 1 20 2 1 19 2 1 15 2 1 17 2 1 22 3 1 8 3 1 18 3 1 12 1 2 9 1 2 6 1 2 15 1 2 11 1 2 12 1 2 8 1 2 14 2 2 22 2 2 19 2 2 24 2 2 25 2 2 19 2 2 19 2 2 14 2 2 26 2 2 21 3 2 8 3 2 10 3 2 14 3 2 7 3 2 5 3 2 11 3 2 8 end data.
Evaluating the simple effect of Factor A across the levels of B , bottom of page 307
glm scores by a b /emmeans= table(a*b) compare(a).
Estimated Marginal Means
a * b
Main effect contrasts in a two-factor design, page 308-309
NOTE: The rationale for doing a main effect contrast (without consideration of the other factor) is that the interaction between the two factors is insignificant
glm scores by a b /lmatrix = 'a1 vs a3 ' a 1 0 -1 a*b .5 .5 0 0 -.5 -.5 /lmatrix = 'a2 vs (a1 and a3) ' a -1 2 -1 a*b -.5 -.5 1 1 -.5 -.5.
Custom Hypothesis Tests #1
Custom Hypothesis Tests #2