Data from Table 13.1, page 268.
data list list / a b recall. begin data. 1 1 7 1 1 7 1 1 9 1 1 10 1 1 9 2 1 6 2 1 8 2 1 7 2 1 9 2 1 9 3 1 10 3 1 8 3 1 8 3 1 6 3 1 8 1 2 7 1 2 8 1 2 9 1 2 10 1 2 10 2 2 6 2 2 8 2 2 8 2 2 9 2 2 9 3 2 7 3 2 7 3 2 6 3 2 9 3 2 9 1 3 7 1 3 7 1 3 10 1 3 7 1 3 9 2 3 3 2 3 5 2 3 3 2 3 6 2 3 5 3 3 2 3 3 3 3 3 4 3 3 5 3 3 5 end data.
Table 13.1, page 268. Table means and Analysis of Variance in a two-factor design.
glm recall by a b /emmeans = table(a*b).


Estimated Marginal Means

Interaction contrasts for a two-factor design from Table 13.4, page 273 and Numerical Example, page 274-275
NOTE: The lmatrix statements for interaction contrast are defined at the A*B level. However, to evaluate the contrast on A by a particular level of B, a contrast must first be set up on A, and then defined which level of the A*B interaction it is to take place over.
glm recall by a b
/lmatrix = '(a2 vs. a3) vs. (b2 vs. b3)' a*b 0 0 0
0 1 -1
0 -1 1
/lmatrix = '(a1 vs. .5(a2 and a3)) vs. (b2 vs. b3)' a*b 0 1 -1
0 -.5 .5
0 -.5 .5
/lmatrix = '(a1 vs. .5(a2 and a3)) at b2' a 1
-.5
-.5
a*b 0 1 0
0 -.5 0
0 -.5 0
/lmatrix = '(a1 vs. .5(a2 and a3)) at b3' a 1
-.5
-.5
a*b 0 0 1
0 0 -.5
0 0 -.5.



Custom Hypothesis Tests #1


Custom Hypothesis Tests #2


Custom Hypothesis Tests #3


Custom Hypothesis Tests #4


